From 9f90fbd52de6857d9d634c9d63674f7aaec6e07c Mon Sep 17 00:00:00 2001 From: Dennis Priskorn Date: Wed, 28 Aug 2024 11:34:35 +0200 Subject: [PATCH] doc: README: Add more information about setup of database and role --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 113c22a..f091533 100644 --- a/README.md +++ b/README.md @@ -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`