Flask and Effective SQlAlchemy

Workshop for KochiPython July 2017 Meetup

Install postgres and libraries

sudo apt-get install postgresql libpq-dev postgresql-client postgresql-client-common

sudo -u postgres psql

alter user postgres password 'postgres';

create database sqlaworkshop;

Python, pip, venv

sudo apt-get install python-pip python-virtualenv

$ python

Python 2.7.12+ (default, Sep 17 2016, 12:08:02)

[GCC 6.2.0 20160914] on linux2

Type "help", "copyright", "credits" or "license" for more information.

$ pip

Usage:

pip [options]

virtualenv venv

$ source venv/bin/activate

$pip install -r requirements.txt