- npm init
- npm install --save express mongoose morgan body-parser
- node index.js // run server
- npm install --save nodemon
- npm install --save bcrypt-nodejs
- npm install --save bcrypt-nodejs
- npm install --save passport passport-jwt
- npm install --save passport-local
- npm install --save cors
- mongod
- npm run dev // after setting up dev script in package.json which then runs nodemon instead
- brew install mongodb
- sudo mkdir -p /data/db
- sudo chown -R $USER /data/db
- mongod // run mongo