- install node from nodejs (prefer to install LTS version)
- clone this repository via
git clone https://github.com/MdEstiakAhmed/express_todo_api.git
- install all dependencies via
npm install
- install mongoDB from MongoDB
- install Compass from Compass
- connect mongodb with compass 1.
- create a database in compass named
todo_app
- create one collection named
users
- run the application via
npm start
- Check postman documentation for API information. (documentation)
- register user
- login user
- view user profile
- update user profile
- add todo
- get todo (get by status, get between date range)
- update todo
- delete todo
Footnotes
-
execute the mongo.exe from
C:\Program Files\MongoDB\Server\{version}\bin
. and collect the connection string (only the IP address and port exp: mongodb://127.0.0.1:27017) ↩