Skip to content

0x78f1935/flask-react-multipage-boiler-template

Build Status Build Status License Build Status Dependency Status peerDependency Status

pre development steps

In order to keep your configuration file safe. After cloning the repository execute the following command

git update-index --assume-unchanged backend/config/__init__.py

installation Python 3.6 >

python -m pip install virtualenv
python -m virtualenv venv

activate virtuale environment windows

.\venv\Scripts\activate

activate virtuale environment debian

source venv/bin/activate

install requirements

python -m pip install -r requirements.txt
npm install

compile frontend

npm run build

use hot-reload compile (for development purpose)

npm run watch

start python server windows

set FLASK_APP=webserver.py
flask run

start python server debian

export FLASK_APP=webserver.py
flask run

You can also use the provided visual studio code debug configuration. Just make sure to select the virtualenvironemnt in your IDE

open a browser and navigate to

http://127.0.0.1:5000/

All set!

About

Boiler template for a python react flask application (MultiPage)

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •