A companion website to When2Meet to help you decide what food to get!
Built for MIT TechX.
- Fill out the name of your poll and at least two choices
- Sign in with a username and password (optional)
- Vote for the choices you like
- Send the URL to others so they can also fill out the poll
- Run
npm install - Run
npm run setupto create the.envfile if it doesn't exist yet, and edit the environment variables if necessary - Run
npm run start-mongoto start the mongo server - Run
npm install -g nodemonto install nodemon globally - Run
npm run start-devto start the server with nodemon - Go to
localhost:3001to see the app - Run
npm run stop-mongowhen you're done
Notes:
- In the code,
choiceshould refer to a food option in the poll andoptionshould refer to custom options for the poll itself, even though the frontend describes eachchoiceas an "Option". This naming convention is quite unfortunate. - Each poll is refered to by a unique
id, which is itsObjectIdin the Mongo database.
- Run
npm installandnpm run create-envas before - Change
NODE_ENVto"production"in.envand make sure the mongo URI is correct and the secrets are secure - Run
forever start ./bin/www