采用Flask JWT做为后端并包含一个拥有Material UI的React/Redux前端的样板应用

1761438882 8年前

来自: https://github.com/dternyak/React-Redux-Flask

React-Redux-Flask

采用Flask JWT做为后端并包含一个拥有Material UI的React/Redux前端的样板应用.

  • Python 2.7
  • Pytest
  • Heroku
  • Flask
  • React
  • Redux
  • React-Router 2.0
  • React-Router-Redux
  • Babel 6
  • SCSS processing
  • Webpack

Create DB

$ export DATABASE_URL="postgresql://localhost/yourdb"  $ python manage.py create_db  $ python manage.py db init  $ python manage.py db migrate  $ python manage.py db upgrade

Run Back-End

$ python manage.py runserver

Test Back-End

$ python test.py --cov-report=term --cov-report=html --cov=application/ tests/

Run Front-End

$ cd static  $ npm install  $ npm start

Build Front-End

$ npm run build:production