Application for managing Restricted Patients
The easiest way to run the app is to use docker compose to create the service and all dependencies.
docker compose pull
docker compose up
To start the main services excluding the restricted patients app:
docker compose up --scale=app=0
Environment variables set in here will be available when running start:dev
Install dependencies using npm install
, ensuring you are using node v20
Note: Using nvm
(or fnm), run nvm install --latest-npm
within the repository folder
to use the correct version of node, and the latest version of npm. This matches the engines
config in package.json
and the CircleCI build config.
And then, to build the assets and start the app with esbuild:
npm run start:dev
npm run lint
runseslint
.npm run typecheck
runs the TypeScript compilertsc
.
npm run test
For local running, start a wiremock instance by:
docker compose -f docker-compose-test.yml up
Then run the server in test mode by:
npm run start-feature
(or npm run start-feature:dev
to run with auto-restart on changes)
And then either, run tests in headless mode with:
npm run int-test
Or run tests with the cypress UI:
npm run int-test-ui