A web frontend for the account-validation service, allowing users to test XBRL validation on their accounts.
In order to run the service locally you will need the following:
The only local development mode available, using development orchestrator service in Docker CHS Development, that uses tilt.
- Clone Docker CHS Development and follow the steps in the README.
- Run
./bin/chs-dev modules enable accounts
- Run
./bin/chs-dev development enable account-validator-web
(this will allow you to make changes in real time). - Run docker using
tilt up
in the docker-chs-development directory. - Use spacebar in the command line to open tilt window - wait for account-validator-web to become green.(If you have credential errors then you may not be logged into
eu-west-2
.) - Open your browser and go to page http://chs.local/xbrl_validate/
Environment variables used to configure this service in docker are located in the file services/modules/accounts/account-validator-web.docker-compose.yaml
- node v18 (Concourse pipeline builds using Node 18 and live runs on Node 18)
- npm 8.6+
- Docker
- To compile the project use
make build
- To test the project use
make test
- or
make clean build test
Ensure that you are logged into the AWS eu-west-2 region:
aws ecr get-login-password --region eu-west-2 | docker login --username AWS --password-stdin 416670754337.dkr.ecr.eu-west-2.amazonaws.com
and then run:
DOCKER_BUILDKIT=0 docker build --build-arg SSH_PRIVATE_KEY="$(cat ~/.ssh/id_rsa)" --build-arg SSH_PRIVATE_KEY_PASSPHRASE -t 416670754337.dkr.ecr.eu-west-2.amazonaws.com/account-validator-web .
Method | Path | Description |
---|---|---|
GET | /xbrl_validate/ |
Returns the landing page for account validator service |
Key | Example Value | Description |
---|---|---|
CDN_HOST | //$CDN_HOST | Path to CH styling for frontend |
LOG_LEVEL | trace | |
ACCOUNT_VALIDATOR_MAX_FILE_SIZE | 30MB | Max file size |
ACCOUNT_VALIDATOR_UI_UPDATE_INTERVAL | 10s | Time interval |
ACCOUNT_VALIDATOR_UI_UPDATE_TIMEOUT | 15m | |
RESULT_RELOAD_DURATION_SECONDS | 5 |
For further information on running building and testing ch node js apps see the Node Web Starter page.