|
|
|
@ -36,4 +36,22 @@ npm install
|
|
|
|
|
npm run dev |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
Any changes made to frontend and backend will be automatically reflected in the browser. |
|
|
|
|
Any changes made to frontend and backend will be automatically reflected in the browser. |
|
|
|
|
|
|
|
|
|
### Cypress |
|
|
|
|
|
|
|
|
|
```shell |
|
|
|
|
# install dependencies(cypress) |
|
|
|
|
npm install |
|
|
|
|
# run mysql database with required database using docker compose |
|
|
|
|
docker-compose -f ./scripts/docker-compose-cypress.yml up |
|
|
|
|
# Run backend api using following command |
|
|
|
|
npm run start:api |
|
|
|
|
# Run frontend web UI using following command |
|
|
|
|
npm run start:web |
|
|
|
|
# wait until both 3000 and 8080 ports are available |
|
|
|
|
# and run cypress test using following command |
|
|
|
|
npm run cypress:run |
|
|
|
|
# or run following command to run it with GUI |
|
|
|
|
npm run cypress:open |
|
|
|
|
``` |