it is an Full application for todo backend in (Nodejs , Mongodb) and frontend in (ReactJS). this application is restricted for TPConnects company only.
* only by role Admin
# | API | Description | Method | Params | header |
---|---|---|---|---|---|
1 | /api/v1/login | to Sign in | POST | username, password | N/A |
2 * | /api/v1/user | get all users | GET | N/A | authorization : Bearer < token > |
3 * | /api/v1/user | create user | POST | username, password, role | authorization : Bearer < token > |
4 * | /api/v1/user | delete user | DELETE | userId | authorization : Bearer < token > |
# | API | Description | Method | Params | header |
---|---|---|---|---|---|
1 | /api/v1/todo | create todo | POST | todo | authorization : Bearer < token > |
2 | /api/v1/todo | get all user todos | GET | N/A | authorization : Bearer < token > |
3 * | /api/v1/todo | get all todos by Id | GET | userId | authorization : Bearer < token > |
4 | /api/v1/todo/:id | get todo by id | GET | id | authorization : Bearer < token > |
5 * | /api/v1/todo/:id | delete todo by id | DELETE | id | authorization : Bearer < token > |
6 | /api/v1/todo/:id | edit todo message by id | PATCH | id, todo | authorization : Bearer < token > |
7 | /api/v1/todo/:id/status | change status by id | PATCH | id | authorization : Bearer < token > |
- NodeJS 10+
- MongoDB
- NPM / Yarn
- change directory to server
npm install
- enter dummy data by running
npm run seed
- npm start
- change directory to todo
npm install
- run command
npm start
- username : admin
- password : admin
- Routing not implemented
- Not responsive with mobile
- create Mobile App by React native