doc: README: Add more information about setup of database and role

This commit is contained in:
Dennis Priskorn 2024-08-28 11:34:35 +02:00
parent 2051da0220
commit 9f90fbd52d

View file

@ -9,8 +9,15 @@
* start postgres
* create postgres user
* `$ sudo su postgres`
* `$ createuser --interactive` -> owl
* `$ createuser --interactive` -> "owl" role with relevant priviledges
* create postgres database "matcher"
* `$ psql -U postgres`
* `> CREATE DATABASE matcher;`
* `> ALTER DATABASE matcher OWNER TO owl;`
* create the db tables
* TODO find out where credentials are stored
* setup credentials in default.py
* `$ python create_db.py`
* setup a venv
* enter the venv, e.g. in pycharm
* `$ pip install -r requirements.txt`