./sample.env
file../.env
to work properly.PORT = xxxxx; // (optional)
DB_URI = xxxxx; // (URI to an accessible MongoDB Server)
JWT_SECRET = xxxxx; // (random string of letters and characters for hashing)
Docker Installation/Setup Guide
docker pull mongo:latest
- To pull the latest docker image of MongoDB server.docker run -p 27017:27017 mongo
- To run the MongoDB container on port 27017 (default for MongoDB). To run without output append the -d
flag after the -p 27017:27017
.DB_URI
enviornment variable to this format:
collection name
>sample.env
file, and then rename the file to .env
.npm install
to install dependenciesnpm run dev
to start the development nodemon servernpm run lint
and npm run test
to assure that your code doesn't break anything.