mhtrmkholis / fancy-todo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fancy-todo

Link Deploy

http://fancytodo.mhtrmkholis.com

Usage

Make sure Node.js is installed in your computer then run these commands:

npm install

npm run dev

Environment

PORT=

JWT_SECRET=

GOOLE_CLIENT_ID=

User Router:

Route Method Request(s) Response(s) Description
/api/users GET none Success
200 OK
Fail
500 Internal Server Error
Show all users
/api/users/signup POST Body
name: String
email: String
password: String
Success
201 Created
Fail
500 Internal Server Error
Create a user
/api/users/signin POST Body
email: String
password: String
200 OK
Fail
400 Bad Request
Sign a user in
/api/users/signin/goole POST Body
email: String
password: String
200 OK
Fail
400 Bad Request
Sign a user in with google account

Todo Router:

Route Method Request(s) Response(s) Description
/api/todos POST Headers
token: String
Body
name: String
description: String
dueDate: Date
Success
201 Created
Fail
500 Internal Server Error
Create a todo
/api/todos GET none 200 OK
Fail
401 Authorization Error
500 Internal Server Error
Get all todos by authorize user
/api/todos/:id PUT Headers
id: String
Body
name: String
description: String
dueDate: Date
status: Boolean
200 OK
Fail
401 Authorization Error
500 Internal Server Error
Update one todo
/api/todos/:id PATCH Headers
id: String
Body
name: String
description: String
dueDate: Date
status: Boolean
200 OK
Fail
401 Authorization Error
500 Internal Server Error
Update one todo
/api/todos/:id DELETE Headers
id: String
200 OK
Fail
401 Authorization Error
500 Internal Server Error
Delete a todo

About


Languages

Language:JavaScript 73.6%Language:HTML 24.0%Language:CSS 2.3%