Skip to content

nikrb/fcc-books

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fcc project manage a book trading club demo

User Stories

  1. I can view all books posted by every user.
  2. I can add a new book.
  3. I can update my settings to store my full name, city, and state.
  4. 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

setup

install mongo

unixy: sudo apt-get install mongodb-org

development

  1. clone repo
  2. create .env file, e.g.
dbUri=mongodb://localhost:27017/testdb
jwtSecret=somesecretphrase
  1. npm install (top level and client dirs)
  2. startup mongo
  3. npm start

production (cloud9)

  1. clone repo
  2. create .env file, e.g.
dbUri=mongodb://localhost:27017/testdb
jwtSecret=somesecretphrase
NODE_ENV=production
  1. npm install (top level and client dirs)
  2. cd client && npm run build
  3. cd ..
  4. start mongo
  5. node server

About

fcc project manage a book trading club

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors