Skip to content

nickteff/fleact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fleact

Simple Flask and React SPA.

To install

  1. Install the Python virtualenv
cd backend;
python -m venv env;
source env/bin/activate
  1. Load the Python libraries
pip install -r requirements.txt

2.1 Explore the Flask API endpoints by running flask run and navigating to

localhost:5000\api\chart or localhost:5000\api\states

  1. Install the npm project
cd ../frontend;
yarn install

3.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.

  1. Compile and run from the static Flask server
yarn build;
cd ..;
python fleact.py

Go to localhost:5000 and all should be good!

About

I am learning stuff

Resources

Stars

Watchers

Forks

Packages

No packages published