mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 11:06:49 +00:00
docfix/Added basic Postgres instructions
This commit is contained in:
parent
f19068061d
commit
3745bafd40
21
README.md
21
README.md
@ -143,6 +143,27 @@ Please use next values:
|
||||
User Name:
|
||||
Password:
|
||||
|
||||
|
||||
### Notes on the basic ussage of Postgres:
|
||||
Once postgres is installed: (On Mac use brew)
|
||||
|
||||
psql postgres
|
||||
|
||||
create database obpdb; (or any other name of your choosing)
|
||||
|
||||
create user obp; (this is the user that OBP-API will use to create and access tables etc)
|
||||
|
||||
alter user obp with password 'daniel.says'; (put this password in the OBP-API Props)
|
||||
|
||||
grant all on database obpdb to obp; (So OBP-API can create tables etc.)
|
||||
|
||||
Then set the db.url in your Props:
|
||||
|
||||
db.driver=org.postgresql.Driver
|
||||
db.url=jdbc:postgresql://localhost:5432/obpdb?user=obp&password=daniel.says
|
||||
|
||||
The restart OBP-API
|
||||
|
||||
### Notes on using Postgres with SSL:
|
||||
|
||||
Postgres needs to be compiled with SSL support.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user