- This is minimal Flask BolierPlate that you can use for building RestAPIs
- No Relative Import Error
- No Circular Import Error
- You can add Sockets also
- Register your extra BluePrints with app
- You can host it on Heroku by following Below Steps
heroku create AppName1
git push heroku master
heroku addons:create heroku-postgresql:hobby-dev
heroku run python # setting up database
from app import * # app is folder inside which I have my models, routes, api, sockets in a systematic format :: Target is-to import db
db.create_all() # Don't worry that you haven't written any PostgreSQL code, it's all done | details in mind, lol
exit()
Test App Hosted Here
- Check DB by using below Endpoint
https://simpleflaskapp98.herokuapp.com/auth/user/registration
- with below json body
{
"username":"Kush",
"password": "123456"
}
- Django based Layout for Flask
- Separate Model with BluePrints along with Static and Templates
- I hate python import (Pun Intended)