This project consists of an Angular frontend and Node.js/Express backend with MongoDB.
This project was generated with Angular CLI version 13.3.2.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.
node 18.20.4
npm 10.9.0The server was generated with node version 16.14.2.
- node - 16.14.2
- mongodb - 5.0.4
- Navigate to the server directory:
cd server - Run
npm install - Run
npm start
-
Create User
POST http://localhost:3000/api/users- Request:
{ "name": "Rahul Patel", "email": "rahul@gmail.com", "password": "rahul@123", "age": 32 }
-
Login User
POST http://localhost:3000/api/users/login- Request:
{ "email": "rahul5@gmail.com", "password": "rahul@123" }
-
Logout User
POST http://localhost:3000/api/logout- Request:
{}
-
Get User Info
GET http://localhost:3000/api/users/me
-
Update User Info
PATCH http://localhost:3000/api/users/me- Request:
{ "name": "Rahul Solanki", "age": 32 }
-
Delete User
DELETE http://localhost:3000/api/users/me
-
Create Task
POST http://localhost:3000/api/tasks- Request:
{ "description": "Upload Certificate", "completed": false }
-
Get All Tasks
GET http://localhost:3000/api/tasks
-
Get Single Task
GET http://localhost:3000/api/tasks/:id
-
Update Task
PATCH http://localhost:3000/api/tasks/:id- Request:
{ "description": "Upload Certificate", "completed": false }
-
Delete Task
DELETE http://localhost:3000/api/tasks/:id