Skip to content

xszym/flask_battery_app

 
 

Repository files navigation

Battery Backend

Live demo

Go visit the live Dashboard.

Checkout out example API requests in Swagger.

Contributors

Scripts

Debug

docker-compose up web

Runs on localhost:5000.

Run tests

docker-compose up --build tests

Production

docker-compose -f docker-compose.prod.yml up --build

Uses 3 workers on gunicorn and Nginx for reverse proxy, serving static files and load balancing.

Info

Api documentation is located on /api/docs when runned.

Website is located in /nginx/static. Can be viewed on localhost/static when ran.

Warning - In script.js we need to change the urlPrefix variable for production.

Migrations

Run migrations when server is running

docker-compose exec web flask migrate

docker-compose exec web flask upgrade

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 54.5%
  • JavaScript 25.1%
  • HTML 15.1%
  • CSS 4.4%
  • Other 0.9%