An easy-to-use poll building tool.
Make a poll, send it to whoever you want to vote, then receive the results.
- Create your own empty repo on GitHub
- Clone this repository (do not fork)
- Suggestion: When cloning, specify a different folder name that is relevant to your project
- Remove the git remote:
git remote rm origin
- Add a remote for your origin:
git remote add origin <your github repo URL>
- Push to the new origin:
git push -u origin master
- Verify that the skeleton code now shows up in your repo on GitHub
- Create the
.env
by using.env.example
as a reference:cp .env.example .env
- Update the .env file with your correct local information
- Install dependencies:
npm i
- Fix to binaries for sass:
npm rebuild node-sass
- Run migrations:
npm run knex migrate:latest
- Check the migrations folder to see what gets created in the DB
- Run the seed:
npm run knex seed:run
- Check the seeds file to see what gets seeded in the DB
- Run the server:
npm run local
- Visit
http://localhost:8080/
Optional (if you don't want to use Mailgun, comment out Mailgun related code): - Register for Mailgun API key (you'll include your key in routes/admins.js and routes/polls.js)
- Include your email address in the Mailgun triggered routes
- Log in as one of the available users (see Knex seed file)
- Navigate to CREATE A NEW POLL
- Create new poll
- Send poll to your friends
- Benefit
- Node 5.10.x or above
- NPM 3.8.x or above
- Body Parser 1.15.2 or above
- Dotenv 2.0.0 or above
- Ejs 2.4.1 or above
- Express 4.13.4 or above
- Knex 0.11.7 or above
- Knex-logger 0.1.0 or above
- Mailcomposer 4.0.2 or above
- Mailgun-js 0.13.1 or above
- Morgan 1.7.0 or above
- Node-sass-middleware 0.9.8 or above
- Postgres 6.0.2 or above