Skip to content

purwokertodev/flask-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python starter project with Flask and Docker

Getting started

  • create virtual env
$ virtualenv env -p python3 --no-site-packages
  • activate virtual env
$ source env/bin/activate
  • install dependencies
$ pip install -r requirements.txt
$ pip freeze > requirements.txt
  • create database
$ psql postgres
$ postgres=# CREATE DATABASE flask_auth;
  • run migration
$ python main.py create_db
  • run
$ python main.py runserver