Boilerplate to create lightweight webapp with Flask & React.js
JavaScript CSS Python HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
.bowerrc
.gitignore
LICENSE
Procfile
README.md
bower.json
requirements.txt

README.md

Flask React

Introduction

Boilerplate to create a simple web app with Flask and React. Other fontend libraries included Twitter Bootstrap, jQuery, Lodash, Require.js & Font Awesome.

Demo

Deployed on Heroku: flask-react.herokuapp.com

Installation

  • Install python dependencies

      pip install flask requests 
    
  • Install required frontend libraries using bower.

      bower install 
    
  • Transform JSX to JS using React tool for development purpose

      jsx --watch app/static/jsx app/static/js
    
  • Run Flask server

      python app/main.py
    
  • Start coding! :)

Author

Abhinay Omkar abhiomkar@gmail.com

License

MIT

TODO

  • Migrate to ES6. Get rid of deprecated JSX.
  • Support server side rendering of React components
  • Use webpack & gulp for packaging and building.
  • Use PostCSS.
  • Add deploy instructions.