forked from edward/owl-map
doc: README: Add more information about setup of database and role
This commit is contained in:
parent
2051da0220
commit
9f90fbd52d
|
@ -9,8 +9,15 @@
|
||||||
* start postgres
|
* start postgres
|
||||||
* create postgres user
|
* create postgres user
|
||||||
* `$ sudo su postgres`
|
* `$ 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
|
* create the db tables
|
||||||
|
* TODO find out where credentials are stored
|
||||||
|
* setup credentials in default.py
|
||||||
|
* `$ python create_db.py`
|
||||||
* setup a venv
|
* setup a venv
|
||||||
* enter the venv, e.g. in pycharm
|
* enter the venv, e.g. in pycharm
|
||||||
* `$ pip install -r requirements.txt`
|
* `$ pip install -r requirements.txt`
|
||||||
|
|
Loading…
Reference in a new issue