removed all refs to genre_lst, made genre table confirm to id, name, added classes/routes for genre*, tweaked book format to accommodate multiple authors, etc. still 1-line, but with 12 / num of <authors, etc.> col wide form-controls

This commit is contained in:
2020-11-15 14:16:58 +11:00
parent 7334e4b622
commit e39a4da6a2
6 changed files with 119 additions and 20 deletions

6
README
View File

@@ -13,6 +13,12 @@ sudo apt install python3-pip python3-psycopg2 libpq-dev
# --user sticks python libs in ~/.local/[bin|lib|share]
pip3 install --user flask sqlalchemy flask-sqlalchemy flask-marshmallow SQLAlchemy-serializer flask-wtf flask-bootstrap marshmallow-sqlalchemy
### alter db that was saved by:
psql library
alter table genre_lst rename to genre;
alter table genre rename COLUMN genre to name;
# run the web server by:
python3 main.py