Boilerplate application for a Flask JWT Backend and a React/Redux Front-End with Material UI.
- Python 2.7+ or 3.x
- Pytest
- Heroku
- Flask
- React
- Redux
- React-Router 2.0
- React-Router-Redux
- Babel 6
- SCSS processing
- Webpack
$ export DATABASE_URL="postgresql://localhost/yourdb"
or
$ export DATABASE_URL="mysql+mysqlconnector://localhost/yourdb"
or
$ export DATABASE_URL="sqlite:///your.db"
$ python manage.py create_db
$ python manage.py db upgrade
$ python manage.py db migrate
To update database after creating new migrations, use:
$ python manage.py db upgrade
$ cd static
$ npm install
$ python manage.py runserver
$ python test.py --cov-report=term --cov-report=html --cov=application/ tests/
$ cd static
$ npm start
$ npm run build:production