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 setup
to create the.env
file if it doesn't exist yet, and edit the environment variables if necessary - Run
npm run start-mongo
to start the mongo server - Run
npm install -g nodemon
to install nodemon globally - Run
npm run start-dev
to start the server with nodemon - Go to
localhost:3001
to see the app - Run
npm run stop-mongo
when you're done
Notes:
- In the code,
choice
should refer to a food option in the poll andoption
should refer to custom options for the poll itself, even though the frontend describes eachchoice
as an "Option". This naming convention is quite unfortunate. - Each poll is refered to by a unique
id
, which is itsObjectId
in the Mongo database.
- Run
npm install
andnpm run create-env
as before - Change
NODE_ENV
to"production"
in.env
and make sure the mongo URI is correct and the secrets are secure - Run
forever start ./bin/www