installation
Installation
yarn install
yarn build
Running
To run gateway in production:
Create a file
.secrets/.env
with aDB_URL
property with PostgreSQL connections string, eg:DB_URL=postgresql://<user>:<password>@<db-host>:<db-port>/<database-name>
Run gateway with
yarn start:prod
.
You can pass theenv_path
param with path to the.env
file, eg:
yarn start:prod --env_path .secrets/.env
To run gateway locally:
Create a file
.secrets/local.env
with aDB_URL
property with PostgreSQL connections string, eg:DB_URL=postgresql://<user>:<password>@<db-host>:<db-port>/<database-name>
Run gateway with
yarn start:local
.
Running (Docker)
- build the docker image - run script
docker-build.sh
- run the docker image - run script
docker-run.sh