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:
12
README
Normal file
12
README
Normal 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
|
||||
Reference in New Issue
Block a user