VPOST24 TODO
Hello Dear,
I'm Mai Veasna, Currently, I'm a full-stack developer, and I grew up in the beautiful world 😁.I make this project for a simple todo list and open source for sharing with those who want to test.The below section will show about instruction to use that project.
Have fun and happy coding! 😁😁
- Summary data on dashboard
- Recently todo list
- List all of todo list
- Create a todo
- Edit a todo
- Delete todo
- Filter todo list
- Toggle for mark as completed or incompleted
- APIs (get,delete,update) in below for that instruction
- About Us
https://github.com/Maiveasna/v_tech
https://v-tech-rho.vercel.app/
First install dependent
yarn
#or
npm install
#or
pnpm
Create a .env
and add variable DATABASE_URL
and assign the value with your database URL. please check simple on file env.simple
Datase / PostgreSQL
To run migrate data base, run the following command
yarn prisma migrate dev
#or
npm run prisma migrate dev
#or
pnpm prisma migrate dev
run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
https://v-tech-rho.vercel.app
GET
/
${base_url}/api/todo
name type data type description limit none number N/A filter require string N/A
http code content-type response 200
application/json
{ "data" : "Array JSON", "meta" : "JSON" , "link" :"JSON" }
${base_url}/api/todo
POST
/
${base_url}/api/todo
name type data type description uuid required uuid N/A todo required string N/A isCompleted required string N/A createdAt required timestamp N/A
http code content-type response 201
application/json
{"code":"201","message":" Created successfully" , "data" : "JSON"}
400
application/json
{"code":"400","message":"Bad Request"}
405
text/html;charset=utf-8
None
${base_url}/api/todo
PUT
${base_url}/api/todo/{id}
name type data type description todo required string N/A isCompleted required string N/A
http code content-type response 201
application/json
{ "message" : "Updated successfully"}
400
application/json
{"code":"400","message":"Bad Request"}
405
text/html;charset=utf-8
None
${base_url}/api/todo/${id}
DELETE
/api/todo/{id}
name type data type description uuid required uuid N/A
http code content-type response 200
application/json
{ "message" : "Delete successfully"}
${base_url}/api/todo/${id}
Client: React,TailwindCSS, NextJs V.13,
Server: AWS,Vercel,
Database: PostgreSQL,
Backend: Prisma, NodeJs,
For support, email maiveasna9@gmail.com