Skip to content

Anton-Cao/what2eat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What2Eat

A companion website to When2Meet to help you decide what food to get!

Built for MIT TechX.

How it works

  1. Fill out the name of your poll and at least two choices
  2. Sign in with a username and password (optional)
  3. Vote for the choices you like
  4. Send the URL to others so they can also fill out the poll

Dev

  1. Run npm install
  2. Run npm run setup to create the .env file if it doesn't exist yet, and edit the environment variables if necessary
  3. Run npm run start-mongo to start the mongo server
  4. Run npm install -g nodemon to install nodemon globally
  5. Run npm run start-dev to start the server with nodemon
  6. Go to localhost:3001 to see the app
  7. Run npm run stop-mongo when you're done

Notes:

  • In the code, choice should refer to a food option in the poll and option should refer to custom options for the poll itself, even though the frontend describes each choice as an "Option". This naming convention is quite unfortunate.
  • Each poll is refered to by a unique id, which is its ObjectId in the Mongo database.

Production

  1. Run npm install and npm run create-env as before
  2. Change NODE_ENV to "production" in .env and make sure the mongo URI is correct and the secrets are secure
  3. Run forever start ./bin/www

About

Companion app to when2meet for sending out polls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published