This service is currently in beta and under active development some features maybe incomplete, not working or missing.
- Node 20+
- An Instance of the StatsWales backend Service
- Git Bash
Copy the .env-example file to .env
and provide the missing values.
To start the app in development mode:
npm install
npm run dev
The service should now be available on port 3000.
On occasion the Redis Client times outs if this happens restart the frontend service and try again. We are investigating this issue.
There are a number of unit and functional tests under the /tests
directory which are executed using jest with no
external dependencies. These can be run with the following command:
npm run test
There is also a suite of end-to-end tests under the /tests-e2e
directory that are executed via the browser using
playwright. They will require an instance of both the frontend and the backend to be running as they interact with the
full stack.
cd /path/to/backend
npm run dev
cd /path/to/frontend
npm run dev
cd /path/to/frontend
npm run test:e2e
cd /path/to/frontend
npm run test:e2e -- --ui