Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.43 KB

File metadata and controls

48 lines (35 loc) · 1.43 KB

Todo API Node.js and Mongo DB

Youtube Video

List of endpoints

Postman API Documentation

Request Method Endpoint Description
GET /todo Get all todos
POST /todo/create Create a todo
PUT /todos/:id Update a todo
DELTE /todos/:id Delete a todo

Steps to setup in locallly

  1. Clone the repository
  git clone https://github.com/nstack-in/todo-api-node-js-mongo.git
  1. Install dependencies
npm install
  1. Modily .env file and add your mongodb server url
  2. Run the server
npm start

List of dependencies

Dependency Version Description
express 4.17.1 Node.js web application framework
mongoose 6.0.5 MongoDB object modeling tool for Node.js
dotenv 10.0.0 Load environment variables from a .env file into process.env
nodemon 2.0.12 Node.js runtime monitor and restart server

List of authors