An open API service indexing awesome lists of open source software.

https://github.com/bhupesh-v/flask-boilerplate

A Flask + SQLAlchemy Boilerplate
https://github.com/bhupesh-v/flask-boilerplate

Last synced: 7 months ago
JSON representation

A Flask + SQLAlchemy Boilerplate

Awesome Lists containing this project

README

          

# flask-boilerplate

A boilerplate to make apps using Flask

## Setup

1. Install dependencies
```bash
pip3 install -r requirements.txt
```
2. Export env variables
```bash
export FLASK_APP=app
export FLASK_ENV=development
```
3. Setup `migrations` directory
```bash
flask db init
```
4. Create the datbase `db.sqlite3`
```bash
flask db migrate
```
5. Create the models
```bash
flask db upgrade
```