Api for managing tasks, you can add, edit, mark, delete tasks accordingly
Made with Node, Express, MongoDB, Mongoose
Task.Manager.-.Google.Chrome.2021-09-12.13-00-28.mp4
GET /api/v1/tasks
POST /api/v1/tasks
GET /api/v1/tasks/:ID
Parameter | Type | Description |
---|---|---|
id |
string |
Required. ID of task to fetch |
PATCH /api/v1/tasks/:ID
Parameter | Type | Description |
---|---|---|
id |
string |
Required. ID of task to update |
DELETE /api/v1/tasks/:ID
Parameter | Type | Description |
---|---|---|
id |
string |
Required. ID of task to delete |
To run this project, you will need to add the following environment variables to your .env file
MONGO_URI
= mongodb+srv://:@nodeexpressprojects.50qvu.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
PORT
= port no you want to run in
express
npm i express --save
mongoose
npm i mongoose
dotenv
npm i dotenv
nodemon
npm i nodemon
To startup nodemon
npm start
Manual start
node app.js
Explicit port initialization
PORT=<port-no> npm start
PORT=<port-no> node app.js