13 lines
563 B
Plaintext
13 lines
563 B
Plaintext
## TODO: get all this inside a docker container and use compose to do the whole set (pg, flask, ?)
|
|
# flask -> python web server
|
|
# sqlalchemy -> provides db-agnostic python objects of db content (and more)
|
|
## flask-sqlachemy combines/wraps this to provide a db.* set of objects based on the 'app' that flask creates
|
|
|
|
# --user sticks python libs in ~/.local/[bin|lib|share]
|
|
##LEARN: supposedly could use virtualenv instead?
|
|
sudo apt install python3-psycopg2 libpq-dev
|
|
pip3 install --user flask sqlalchemy flask-sqlalchemy
|
|
|
|
# run the web server by:
|
|
python3 main.py
|