?Repo for the Check Your Long Term Flood (CYLTFR) services admin data service.
This repository is part of the CYLTFR service which also includes:
https://github.com/DEFRA/cyltfr-app
https://github.com/DEFRA/cyltfr-service
https://github.com/DEFRA/cyltfr-admin
Node v20.x/ Docker v20.10.0+
npm start
npm test
name | description | required | default | valid | notes |
---|---|---|---|---|---|
NODE_ENV | Environment name | no | dev | dev,test,pre,prod-green,prod-blue | |
HOST | Host name | no | 0.0.0.0 | ||
PORT | Port number | no | 3000 | ||
STAND_ALONE | Development option | no | false | ||
AWS_BUCKET_REGION | yes | ||||
AWS_BUCKET_NAME | yes | ||||
HOLDING_COMMENTS_PREFIX | no | holding-comments | |||
MANIFEST_FILENAME | no | manifest.json |
$ node index.js
First build the debug image using
$ npm run container:builddebug
Configure vscode using a debug configuration launch.json like
{
"version": "0.2.0",
"configurations": [
{
"address": "0.0.0.0",
"name": "Attach",
"port": 9229,
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"localRoot": "${workspaceFolder}",
"remoteRoot": "/home/node/app",
"type": "node"
}
]
}
Then you can run the container in debug mode using
$ npm run container:debug
or
$ npm run cd
This maps your source directory into the container, so that you can make changes locally and they'll be reflected in the container.
If you have auto-attach configured in vscode you might need to disable it for this to work.
When you have finished end the debug container using
$ npm run container:stopdebug
or
$ npm run cx
THIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:
http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3
The following attribution statement MUST be cited in your products and applications when using this information.
Contains public sector information licensed under the Open Government licence v3
The Open Government Licence (OGL) was developed by the Controller of His Majesty's Stationery Office (HMSO) to enable information providers in the public sector to license the use and re-use of their information under a common open licence.
It is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.