Simple Flask and React SPA.
To install
- Install the Python virtualenv
cd backend;
python -m venv env;
source env/bin/activate- Load the Python libraries
pip install -r requirements.txt2.1 Explore the Flask API endpoints by running flask run and navigating to
localhost:5000\api\chart or localhost:5000\api\states
- Install the npm project
cd ../frontend;
yarn install3.1 Explore the frontend development environment by running
yarn start and navigating to localhost:3000.
Note: The Flask server needs to be running for the frontend to proxy over to the API.
- Compile and run from the static Flask server
yarn build;
cd ..;
python fleact.pyGo to localhost:5000 and all should be good!