Skip to content

robcalcroft/reflect

Repository files navigation

Reflect CircleCI

Developing locally

Prerequisites

Environment

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.

Installing dependencies

Just run yarn in the root of the project.

Start the app

Locally:

yarn start

Docker:

docker-compose up -d && yarn start:app

Scripts

For a list of all scripts see the scripts field in the package.json.

Database

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