https://github.com/purwokertodev/flask-starter
minimalist flask and docker project skeleton
https://github.com/purwokertodev/flask-starter
boilerplate-application flask flask-application python
Last synced: 2 months ago
JSON representation
minimalist flask and docker project skeleton
- Host: GitHub
- URL: https://github.com/purwokertodev/flask-starter
- Owner: purwokertodev
- Created: 2018-10-21T06:55:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-22T01:50:09.000Z (over 7 years ago)
- Last Synced: 2025-06-02T19:22:30.531Z (about 1 year ago)
- Topics: boilerplate-application, flask, flask-application, python
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## Python starter project with Flask and Docker
### Getting started
- create virtual env
```shell
$ virtualenv env -p python3 --no-site-packages
```
- activate virtual env
```shell
$ source env/bin/activate
```
- install dependencies
```shell
$ pip install -r requirements.txt
$ pip freeze > requirements.txt
```
- create database
```shell
$ psql postgres
$ postgres=# CREATE DATABASE flask_auth;
```
- run migration
```shell
$ python main.py create_db
```
- run
```shell
$ python main.py runserver
```