half broke version, but its working... need to do the subquery to get list of all real books without subs, but also make sense of how author data is coming through without marshmallow of BookSchema?
This commit is contained in:
10
README
10
README
@@ -1,4 +1,4 @@
|
||||
## TODO: get all this inside a docker container and use compose to do the whole set (pg, flask, ?)
|
||||
### 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
|
||||
@@ -7,9 +7,15 @@
|
||||
# install needed binaries (maybe I could have done this instead of pip below too -- when I docker this shit, sort it out?)
|
||||
sudo apt install python3-psycopg2 libpq-dev
|
||||
|
||||
##LEARN: supposedly could use virtualenv instead of pip3 install --user?
|
||||
### LEARN: supposedly could use virtualenv instead of pip3 install --user?
|
||||
# --user sticks python libs in ~/.local/[bin|lib|share]
|
||||
pip3 install --user flask sqlalchemy flask-sqlalchemy flask-marshmallow SQLAlchemy-serializer
|
||||
|
||||
# run the web server by:
|
||||
python3 main.py
|
||||
|
||||
|
||||
### TODO:
|
||||
- book subbook link will be next real challenge
|
||||
- then next challenge will be to make single book page an edit / save
|
||||
- then its just finish this off :)
|
||||
|
||||
Reference in New Issue
Block a user