- [mongodb] (https://docs.mongodb.com/guides/server/install/)
.env
https://github.com/hamzeen/JWT-backend/blob/master/.env
work around: <https://stackoverflow.com/questions/58034955/read-only-file-system-when-attempting-mkdir-data-db-on-mac>
mongod --dbpath=/Users/user/data/db
cd mongodb/bin/mongo
sudo mkdir -p /Users/hanz/data/db
./mongod --dbpath=/Users/hanz/data/db
./mongod
./mongo
use opruimen
show collections
db.users.find().pretty()
- install dependencies:
npm install
- start backend server:
npm run dev
- JWT: head, body signature
npm install
npm start
- browse: localhost:4200
git init
git add .
git commit -m "first commit"
git remote add origin [email protected]:hamzeen/new_repo
~LC
06/05/2021