Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 508 Bytes

Readme.md

File metadata and controls

33 lines (28 loc) · 508 Bytes

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