initial commit of book library in python with sqlalchemy (as an ORM), flask (for the web server) and jinja2 (as the web template front-end bit)

This commit is contained in:
2020-11-03 18:29:41 +11:00
commit a51db7c9e4
9 changed files with 126 additions and 0 deletions

12
README Normal file
View File

@@ -0,0 +1,12 @@
## TODO: get all this inside a docker container and use compose to do the whole set (pg, flask, ?)
# flash -> python web server
# sqlalchemy -> provides db-agnostic python objects of db content (and more)
## LEARN: not totally sure what flask-sqlachemy provides
# --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 book.py