Add a .env
file in the root of the project. You will need to add config for connecting to PostgresSQL, there is information on how to configure the client library here. If you are running PostgreSQL locally with the default settings you will probably only need to set PGUSER
and PGPASSWORD
.
Just run yarn
in the root of the project.
Locally:
yarn start
Docker:
docker-compose up -d && yarn start:app
For a list of all scripts see the scripts
field in the package.json.
The DB runs the sql commands found in the db folder on startup. This is where all DB bootstraping should be done.
We can run the database's cmd line tool with the following command
docker-compose exec database psql -U postgres