The Marine Licensing Backend is part of a GDS-compliant replacement of the Marine Case Management System (MCMS).
Release of the marine licensing backend that will be accessed by marine licensing frontend which will be used by the public. The link lists all the features within the application.
Initial release of the marine licensing backend platform.
For latest minimum versions of Node.js and NPM, see the package.json 'engines' property.
You may find it easier to manage Node.js versions using a version manager such
as nvm or n. From within the project folder you
can then either run nvm use or n auto to install the required version.
Install application dependencies:
npm installTo run the application in development mode run:
npm run devTo mimic the application running in production mode locally run:
npm startAll available Npm scripts can be seen in package.json. To view them in your command line run:
npm runDependabot automatically creates pull requests to update dependencies.
For authentication when running locally, there are 2 options. Whichever you use it has to match the option used by marine-licensing-frontend, so that auth tokens sent with requests to the backend are correctly validated:
The out-of-the-box config will use the cdp-defra-id-stub.
To set this up and run it, instructions are in marine-licensing-frontend. The .env.template file referred to by the instructions is in the root of this repo.
For most local development, you shouldn't need to override any of the env var defaults that are in config.js.
Under the index.js files in ./src/api/*
Build:
docker build --target development --no-cache --tag marine-licensing-backend:development .Run:
docker run -e PORT=3001 -p 3001:3001 marine-licensing-backend:developmentNote - the development image uses the source files directly using volumes, and will automatically rebuild to reflect any changes.
Build:
docker build --no-cache --tag marine-licensing-backend .Run:
docker run -e PORT=3001 -p 3001:3001 marine-licensing-backendA local environment with:
- Localstack for AWS services (S3, SQS)
- Redis
- MongoDB
- This service.
- A commented out frontend example.
docker compose up --build -dInstructions for setting up SonarCloud can be found in sonar-project.properties
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 license v3
The Open Government Licence (OGL) was developed by the Controller of Her 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.