danidee10 / Votr

:star2: A polling application built with Flask and React

Home Page:https://danidee10.github.io/2016/09/18/flask-by-example-1.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

:star2: A polling application built with Flask and React

https://danidee10.github.io/2016/09/18/flask-by-example-1.html

License:GNU General Public License v3.0


Languages

Language:Python 44.9%Language:JavaScript 30.3%Language:HTML 17.8%Language:CSS 6.3%Language:Mako 0.7%