Skip to content

nikrb/fcc-vote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fcc project voting app demo

User Stories

  1. As an authenticated user, I can keep my polls and come back later to access them.
  2. As an authenticated user, I can share my polls with my friends.
  3. As an authenticated user, I can see the aggregate results of my polls.
  4. As an authenticated user, I can delete polls that I decide I don't want anymore.
  5. As an authenticated user, I can create a poll with any number of possible items.
  6. As an unauthenticated or authenticated user, I can see and vote on everyone's polls.
  7. As an unauthenticated or authenticated user, I can see the results of polls in chart form. (This could be implemented using Chart.js or Google Charts.)
  8. As an authenticated user, if I don't like the options on a poll, I can create a new option.

setup

You can use yarn instead of npm, to install npm install -g yarn.

install mongo

unixy: sudo apt-get install mongodb-org

development

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

production (cloud9)

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

About

fcc project voting app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published