fcc project manage a book trading club demo
- I can view all books posted by every user.
- I can add a new book.
- I can update my settings to store my full name, city, and state.
- I can propose a trade and wait for the other user to accept the trade.
boilerplate repo create a base for react authentication.
- node.js
- react.js
- react-router-dom (react-router v4)
- mongodb & mongoose
- passport.js (passport-local)
This project was bootstrapped with Create React App.
Following vlad's authentication blog
unixy:
sudo apt-get install mongodb-org
- clone repo
- create .env file, e.g.
dbUri=mongodb://localhost:27017/testdb
jwtSecret=somesecretphrase
- npm install (top level and client dirs)
- startup mongo
- npm start
- clone repo
- create .env file, e.g.
dbUri=mongodb://localhost:27017/testdb
jwtSecret=somesecretphrase
NODE_ENV=production
- npm install (top level and client dirs)
- cd client && npm run build
- cd ..
- start mongo
- node server