npm install
npm start
Open http://localhost:3000 in your browser to view the app.
npm run build
npm run start:prod
Run Cypress tests headlessly:
npm run cy
Run Cypress tests with the browser:
npm run cy:open
To overide configurations without modifying the existing config file:
npx cypress run --config <config>
Alternatively, you can create your own local config file and use the following command:
npx cypress run --config-file <config-file>
Remember do not push this file to the source control if not needed.
You must provide the following variables in either cypress.config.ts
or cypress.env.json
SERVER_URL CLIENT_URL TEST_USERNAME TEST_USER_PASSWORD USED_USERNAME
Check here to see how to set the environment variables. For local testing, modify the variables in cypress.env.json
since it is not tracked and variables defined here take precedence over the ones in the config file.
npm run lint
Lint and fix files:
npm run lint:fix
npm run format
npm run clean
npm run extract-translations
The translations are handled by i18next.
// import config from "./sentry-server.config.json" assert { type: "json" };
in sentry.js
// import config from "../sentry-client.config.json"
and the init config Sentry.init(...
in index.ts
sentry-client.config.json
file in client
and sentry-server.config.json
(ask them to an admin)