Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.01 KB

README.md

File metadata and controls

51 lines (40 loc) · 1.01 KB

timeline-app

Pre-Requisites

start MongoDB service

.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()

Running backend

  • install dependencies: npm install
  • start backend server: npm run dev
  • JWT: head, body signature

Running Front-End

  • npm install
  • npm start
  • browse: localhost:4200

intialize from existing code

  • git init
  • git add .
  • git commit -m "first commit"
  • git remote add origin [email protected]:hamzeen/new_repo

~LC

06/05/2021