/flask-react-multipage-boiler-template

Boiler template for a python react flask application (MultiPage)

Primary LanguageCSSGNU General Public License v3.0GPL-3.0

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!