| environment | url | cloudwatch dashboard | deploy status |
|---|---|---|---|
| dev | Fargate service URL | AWS Cloudwatch dashboard | |
| acc | Fargate service URL | AWS Cloudwatch dashboard | |
First, install the dependencies. (Node version 18.x is recommended)
npm installGenerating the types of the api will be handled automatically by "postinstall". However, it is still possible to generate types afterwards by running this npm script.
npm run codegenCreate an enviroment variables file based on the example and fill in the values
cp .env.example .envRun the development server.
npm run devBuild Docker Container:
docker-compose buildStart Docker Container:
docker-compose up -dBuild the docker image and dont forget to fill in your token.
docker build -t crm-web-docker --build-arg NPM_TOKEN={GH_ACCESS_TOKEN} .Follow these steps to run end-to-end tests locally:
-
Run Tests:
- To run tests:
npm run test:e2e - To run tests in headed mode:
npm run test-headed:e2e
- To run tests:
-
View Test Reports (Optional):
- After running tests, the test reports will open automatically.
- If they don't open, run the following:
npm run show-e2e-test-report