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
- Host: GitHub
- URL: https://github.com/bhupesh-v/flask-boilerplate
- Owner: Bhupesh-V
- Created: 2022-08-02T17:34:36.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-02T18:03:02.000Z (about 3 years ago)
- Last Synced: 2025-03-19T15:21:15.642Z (7 months ago)
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```