Skip to content

danidee10/Votr

Repository files navigation

Votr

Repository for my tutorial on How to build an online voting application with Flask and React

The Live Demo is available on heroku

NOTE: This branch contains code for the tutorial on my blog, For the latest state of this project, checkout the master branch

Table of content

  • Part 1 - Introduction and installation
  • Part 2 - Design and manipulate the database with SQLAlchemy
  • Part 3 - Templating, authentication and static assets
  • Part 4 - Building an interactive UI with ReactJS
  • Part 5 - How to build a simple REST API with Flask
  • Part 6 - Connecting React to a REST API
  • Part 7 - Spin up an Admin dashboard quickly and easily with Flask-Admin
  • Part 8 - Understanding Flask blueprints
  • Part 9 - Running background tasks with celery
  • Part 10 - Testing the application

The table of contents lists the main topic of focus in each part, but each article also covers other topics

Votr in action

create a poll

votr

Installation

https://github.com/danidee10/Votr.git

Install requirements

pip install -r requirements.txt

set the FLASK_APP and FLASK_DEBUG variables

export FLASK_APP=votr.py
export FLASK_DEBUG=1

Finally run it with:

flask run