A Flask-Sandboy template for cookiecutter.
pip install cookiecutter
cookiecutter https://github.com/opyate/cookiecutter-flask-sandboy.git
You will be asked about your basic info (app name, etc.). This info will be used in your new project.
Your newly-generated app is self-documenting, and its README will have more information on how to continue.
If you follow all the steps you'll end up with something like this:
- Flask-Sandboy for quick REST on your models
- Flask-SQLAlchemy with basic model
- Easy database migrations with Flask-Migrate
- Procfile for deploying to a PaaS (e.g. Heroku)
- One-click deploy for Heroku
- pytest and Factory-Boy for testing (example tests included)
- A simple
manage.py
script. - Caching using Flask-Cache
- Utilizes best practices: Blueprints and Application Factory patterns
This template has the following opinions:
- the test database must be the same as the development database must be the same as the production database
- cookiecutter-flask
- My fork of sandboy
MIT licensed.
- General polish
- Add extra model to show relations
- First iteration
- Sandboy integration
- Working demo model