Skip to content

jj-style/FlaskReactTemplateApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask React Template App

React CI Flask CI

Simple flask and react apps useful for starting a web project.

Flask configured with a few flask-restful Resources and blueprints, easy to add more.
Login managed with flask-login using jwt tokens between client and server.
Posts resource configured as facade with an in memory and sqlalchemy implementation which can be selected via an environment variable.
React has auth provider and login page which uses the JWT token in all requests.

Running

Docker

Both apps come with a docker file which can be built and run. For example:

docker build . -t flaskapp:latest
docker run -p 80:8080 flaskapp:latest

Can also use docker-compose, once built both images run docker-compose up.

Manually

In flask directory:

python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
python run.py # or flask run

In react directory:

npm install
npm run

About

Flask backend with React frontend basic starter app for projects. Includes JWT for auth.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published