-
Create folder with project name
-
git init
-
npm init
-
create .gitignore
-
git rm -r --cached .
-
git add .
-
npm i nodemon -save-dev
-
npm i standard babel-eslint -save-dev
-
npm i express
-
npm i mongoose
-
create index.js file
-
inside of package.json
- "dev" : "nodemon index.js"
- "lint" : standard --fix"
- create run_dev.sh file like this:
PORT=<port> USER=<user> npm run dev
sh run_dev.sh
#!/bin/bash
PORT=4000 DB_URL=mongodb+srv://<user>:<password>@intime-ybwup.mongodb.net/<db_name>?retryWrites=true npm run dev
#!/bin/bash
PORT=4000 SECRET_KEY=799651B27B2E5D99D17C9CF675400 DB_URL=mongodb+srv://<user>:<password>@intime-ybwup.mongodb.net/<db_name>?retryWrites=true npm run dev