We need below regular depnedencies
- express
- express-validator
- mongoose
- request
- bcryptjs
- jsonwebtoken
- gravatar
- congif
We also need below dev dependencies
- nodemon
- concurrently
Follow the steps below.
Create a folder in your system where you want to start project
Get into that folder click right-click open cmd/powershell type "code ." .(vscoode will be open)
Open terminal in vscode or (ctrl+~) follow the below to install regular dependencies.
- npm init -y
- npm i express express-validator mongoose request bcryptjs jsonwebtoken gravatar config
*Also install below dependencies as dev dependencies *
npm i -D nodemon concurrently
If you get any trouble to install dependencies try installing one by one
Creating cluster in mongodb atlas
Create account in mongoDb atlas and login.
Create project.
Click on build database.
Select free shared.
Choose your local region country/continent for low latency.
Name cluster name and save.
Add user to the db.
Set ip to 0.0.0.0/0
You can check videos below
youtube link
Top comments (0)