Giter Site home page Giter Site logo

mansiagnihotrii / e-poller Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 18.65 MB

:point_up_2: Online Polling application using Flask

Home Page: https://epoller-app.herokuapp.com/login

Python 34.64% JavaScript 63.99% Shell 1.31% Procfile 0.06%
flask javascript js python pollingapp website html css jinja bootstrap

e-poller's Introduction

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

e-poller's People

Contributors

dependabot[bot] avatar mansiagnihotrii avatar mike1728 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.