Skip to content

Latest commit

 

History

History
78 lines (50 loc) · 2.58 KB

README.md

File metadata and controls

78 lines (50 loc) · 2.58 KB

E-POLLER

This online voting application (E-POLLER) is used to create polls online for people to vote. It runs using flask (python based web framework) primarily. It uses Heroku Postgres Database.

e-POLLER IN ACTION

e-Poller!

SET UP HEROKU POSTGRES DATABASE

If you are not familiar with heroku , follow these steps:

  1. Navigate to Heroku|Sign Up and create an account. Login after you created the account.
  2. Create new app. The app name can be of your choice.
  3. Navigate to "Resources" tab in the header of heroku dashboard. Then type "Heroku Postgres" into the Add-ons search field. Select "Heroku Postgres" from the dropdown.
  4. Select "Hobby Dev-Free" plan and click "Provision". Your free postgreSQL Database is created
  5. Navigate to "Heroku Postgres"-->"Settings"-->"View Credentials" to see your credentials
  6. Follow the link for more info.

SET UP ENVIRONMENT VARIABLES

DATABASE_URL Set DATABASE_URL environment variable to the value of URI in your Heroku Credentials.

FLASK_APP Set FLASK_APP environment variable to value "application.py"

MAIL_USERNAME Set MAIL_USERNAME environment variable to the gmail address you want to use for sending mail

MAIL_PASSWORD Set MAIL_PASSWORD environment variable to the password of the gmail address provided above

RUN THE APPLICATION

  1. Open cmd and navigate to your repository location.
  2. Type following command to install all the requirements. (Make sure you have python 3.0+ version installed)
>>pip install -r requirements.txt
  1. Type following command to create tables in your database. (Make sure to set environment variables)
>>python import.py
  1. Lastly, type following command to run your application.
>>flask run

Navigate to your localhost address in your browser to see the application in action !!!!

GLIMPSE OF APPLICATION

Built With

Contributing

You can contribute by sending pull requests to the code.

Authors

See also the list of contributors who participated in this project.

Acknowledgments

This project was inspired by Votr