Web front-end for the Registered Email Address service
In order to run the service locally you will need the following:
To checkout and build the service:
- Clone Docker CHS Development and follow the steps in the README.
- Run ./bin/chs-dev modules enable registered-email-address
- Run ./bin/chs-dev services enable transactions-api
- Run ./bin/chs-dev services enable company-lookup-web-ch-gov-uk
- Run ./bin/chs-dev development enable registered-email-address-web (this will allow you to make changes).
- Run docker using "tilt up" in the docker-chs-development directory.
- Use spacebar in the command line to open tilt window - wait for officer-filing-web to become green.
- Open your browser and go to page http://chs.local/registered-email-address
NOTE: when testing, you will need a company that already has a registered-email-address that will be returned by the private oracle-query-api
Debugging with IDE - add the following to docker-chs-development/services/modules/registered-email-address/registered-email-address-web.docker-compose.yaml ports: - 9229:9229 and configure your IDE accordingly. For VS-CODE, the following can be added to .vscode/launch.json:
"configurations": [ { "type": "node", "request": "attach", "name": "attach - remote", "address": "localhost", "port": 9229, "restart": true, "sourceMaps": true, "remoteRoot": "/app", "localRoot": "${workspaceFolder}/dist", "resolveSourceMapLocations": [ "${workspaceFolder}/", "!/node_modules/**" ] } ]
These instructions are for a local docker environment.
In order to run tests locally you will need to do the following:
- Navigate to /registered-email-address-web/
- Run 'git submodule init', followed by 'git submodule update'.
- Run 'npm test'
SESSION_TIMEOUT= - default if not set=3600 SESSION_COUNTDOWN= - timeout popup before signing out - default if not set=60 seconds