- Running in docker
$ docker-compose -f docker-compose.dev.yml up -d
NB: the frontend and api need to be run outside of Docker to take advantage of watch-mode for development
- Login to keycloak to add yourself a new user:
http://localhost:8080/auth
use the following credentials to access the keycloak admin panel:
username: admin
password: password
add user
To generate dummy data: docker exec -d court-nest npm run seed:run
To populate with JSON data
- Login to app via a web browser
- Retrieve the JWT token from network tab
- Use Postman to POST a JSON array of interpreters to
http://localhost:4000/api/v1/interpreter/upload
using the JWT token as the Authorization header:Bearer <token>
The JSON file in e2e/cypress/fixtures/interpreters
can be used as per the above to seed the database.
NB: the following section will produce an application stack with 3 interpreters that can be used to test the application manually in prod mode at http://localhost:5000
The following three commands in order will kick off e2e testing via the docker-compose.test.yml
file, alternatively simply run make e2e-test
:
docker-compose -f docker-compose.test.yml build
docker-compose -f docker-compose.test.yml up -d client api postgres keycloak
docker-compose -f docker-compose.test.yml up cypress --abort-on-container-exit --exit-code-from cypress
Dev: https://dev-court-interpreter-scheduling.apps.silver.devops.gov.bc.ca/
Test: https://test-court-interpreter-scheduling.apps.silver.devops.gov.bc.ca/
-
save excel file to csv
-
postman:
POST /interpreter/csv
Body:
file
: select the csv fileisEmptyTable
(boolean): Empty theinterpreter
tableisAnonymous
(boolean): Anonymize the interpreterisVisual
(boolean): When uploading thevisual
interpreters, please use value:true
isUpdate
(boolean): if want to update the exist interpreters, would take more time.
- For Regular Interpreters:
file
isEmptyTable
: dependsisAnonymous
: true, if env = 'test', 'dev'isUpdate
: true
- For Visual Interpreters:
file
isAnonymous
: true, if env = 'test', 'dev'isUpdate
: true