To Do
is an example of MERN Stack backend(folder structure) developed by Tergeltengis.
Tool | Version |
---|---|
Node | ^14.15.4 |
Yarn | ^1.x.x |
Postman | ^1.x.x |
-
Install Node version
^14.15.4
(via nvm or other) and ensure the project uses one a compatible version locally -
Run
yarn
to install dependencies -
Create
.env
file with following content:
MONGODB_HOST=mongodb://localhost:27017/todo
(MongoDB atlas connection string can be used)
-
Run
yarn start
to run. -
Ready to check endpoint using Postman.
http://localhost:5000/tasks (GET,POST,DELETE)
In local environment, we need to start MongoDB server on localhost:27017
.
Run yarn test
for testing.
yarn coverage
for coverage.