This is the REST API powering the various Agnos clients.
.env
file in the project root directory and populate it accordingly. See .env.example
for environment variables expected in .env
yarn
to install dependencies.yarn dev
to run the development versiondocker build --target development -t agnos-rest-api:dev .
docker run -p 3000:3000 agnos-rest-api:dev
docker-compose up --build
.test.env
file in the project root directory and populate it accordingly. See .env.example
for environment variables expected in .test.env
yarn docker:compose:test
to start the relevant Docker containers. The command yarn test
will then be automatically run in the agnos-rest-api-api container.yarn docker:build:prod
which runs the following command: docker build --target production -t agnos-rest-api .