A REST API built with Node, Express and Mongo db.
These instruction will guide you to get a copy of the project and running on your local machine for development.
- Node.js - install from node.js website
- npm - comes with Node.js
- Mongo db
- express - a web application framework for node.js
- mongoose - a MongoDB ODM (the NoSQL equivalent of an ORM) for Node
- body-parser - parse incoming request bodies in a middleware before your handlers
- nodemon - automatically reload node server, however not necessary.
- Clone the repository
git clone https://github.com/NibeshSdev/todolist.git
- Install all dependencies
npm install
- Run the mongo server
You need to install mongo globally to use the following command.
mongod
Otherwise go to mongo installation directory > bin > mongod.exe
- Run the application
npm run start
Then use the following URLs for fetching, inserting, updating and deleting data.
-
list_all_tasks - GET http://localhost:3000/tasks
-
create_a_task - POST http://localhost:3000/tasks
-
read_a_task - GET http://localhost:3000/tasks
-
update_a_task - PUT http://localhost:3000/tasks
-
delete_a_task - DELETE http://localhost:3000/tasks
- Nibesh Shankhadev