This is a template to start developing Flask projects. The project includes sample tests with Python's built-in testing framework unittest, how the project folders should be structured and good practices of Python and Flask.
Since a long time ago, I wanted to learn Python. I decided to start developing simple REST APIs to get going and this led me to this project!
> git clone https://github.com/jdrodriguezh/flask-template
> cd flask-template
> pipenv shell
> pipenv install
> py ./run.py
This project is getting upgrades in my free time if there is a problem please create a bug report in the issues section.
- Licensed under MIT License
On the project root directory, you can run:
Runs the project in the development mode.
Adds the migrations folder to your project. This needs to be run only once, when running your first migration.
Generates the migration script.
Applies the migration to the database.
IMPORTANT: Only flask db migrate and flask db upgrade need to be run every time the models change.
Runs all the tests in our /test folder.