romantomjak / flask-blueprint-quickstart

Flask starter kit for larger apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flask-blueprint-quickstart

Flask starter kit for larger apps


Read the accompanying blog post here https://r00m.wordpress.com/2018/04/19/directory-structure-for-a-flask-project

How to use this

You can start by cloning the latest version:

$ git clone https://github.com/r00m/flask-blueprint-quickstart my-project
$ cd my-project

When that's done, install project dependencies:

$ pip install -r requirements.txt

Now you can start the app:

$ FLASK_APP=main.py FLASK_DEBUG=1 flask run

And you're ready to start developing! ✨

Project structure

$ tree
.
├── LICENSE
├── README.md
├── expert_disco        # contains global stuff like settings, utils, models, etc
│   ├── __init__.py     # bootstrap file. initialise your extensions here
│   └── settings.py
├── main.py             # entry point
├── polls               # app (example)
│   ├── __init__.py     # Blueprints are created here
│   └── views.py        # here you put your views and tie them to a Blueprint
└── requirements.txt

License

MIT

About

Flask starter kit for larger apps

License:MIT License


Languages

Language:Python 100.0%