Skip to content

Database

Tom edited this page Aug 19, 2020 · 2 revisions

Postgres can be started by running

docker-compose up -d

in the root directory of the server. All data should be persisted between runs.

pgAdmin

gpAdmin is a management gui for postgres that may make development easier. If desired it can be accessed on localhost:8089 when the docker container is setup. Then, add a server with the following details

name: onboard
host: db
port: 5432
username: onboard
password: y@yCKiL2oUmJ

I Don't Like Docker

Well that's a shame... However, a typical install of Postgres (e.g. via pacman -Sy postgres) should work provided the configuration matches that in the ormconfig.js.

Seeding the Database

To seed the database run yarn db:seed.

Clone this wiki locally