{"id":20038602,"url":"https://github.com/defra/cdp-user-service-backend","last_synced_at":"2026-05-14T20:32:59.764Z","repository":{"id":226257742,"uuid":"676016333","full_name":"DEFRA/cdp-user-service-backend","owner":"DEFRA","description":"Git repository for service cdp-user-service-backend","archived":false,"fork":false,"pushed_at":"2026-02-26T11:31:27.000Z","size":1846,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-02-26T14:55:35.305Z","etag":null,"topics":["backend","cdp","node","service"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DEFRA.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-08T08:40:23.000Z","updated_at":"2026-02-26T11:28:53.000Z","dependencies_parsed_at":"2026-01-03T02:01:16.364Z","dependency_job_id":null,"html_url":"https://github.com/DEFRA/cdp-user-service-backend","commit_stats":null,"previous_names":["defra/cdp-user-service-backend"],"tags_count":282,"template":false,"template_full_name":null,"purl":"pkg:github/DEFRA/cdp-user-service-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fcdp-user-service-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fcdp-user-service-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fcdp-user-service-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fcdp-user-service-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DEFRA","download_url":"https://codeload.github.com/DEFRA/cdp-user-service-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fcdp-user-service-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33042184,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend","cdp","node","service"],"created_at":"2024-11-13T10:30:15.418Z","updated_at":"2026-05-14T20:32:59.744Z","avatar_url":"https://github.com/DEFRA.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CDP User Service Backend\n\nCore delivery platform User Service Backend.\n\n[![Publish](https://github.com/DEFRA/cdp-user-service-backend/actions/workflows/publish.yml/badge.svg)](https://github.com/DEFRA/cdp-user-service-backend/actions/workflows/publish.yml)\n\n[![Integration Tests](https://github.com/DEFRA/cdp-user-service-backend/actions/workflows/integration-tests.yml/badge.svg)](https://github.com/DEFRA/cdp-user-service-backend/actions/workflows/integration-tests.yml)\n\n- [Requirements](#requirements)\n  - [Node.js](#nodejs)\n- [Local development](#local-development)\n  - [Setup](#setup)\n  - [Development](#development)\n    - [Updating dependencies](#updating-dependencies)\n  - [Production](#production)\n  - [Npm scripts](#npm-scripts)\n- [Versioning](#versioning)\n  - [Auto minor versioning](#auto-minor-versioning)\n  - [Major or Patch versioning](#major-or-patch-versioning)\n- [Docker](#docker)\n  - [Development image](#development-image)\n  - [Production image](#production-image)\n- [Licence](#licence)\n  - [About the licence](#about-the-licence)\n\n## Requirements\n\n### Node.js\n\nPlease install [Node.js](http://nodejs.org/) `\u003e= v18` and [npm](https://nodejs.org/) `\u003e= v9`. You will find it\neasier to use the Node Version Manager [nvm](https://github.com/creationix/nvm)\n\nTo use the correct version of Node.js for this application, via nvm:\n\n```bash\n$ cd cdp-user-service-backend\n$ nvm use\n```\n\n## Local development\n\n### Setup\n\nInstall application dependencies:\n\n```bash\n$ npm install\n```\n\n### Development\n\nTo run the application in `development` mode run:\n\n```bash\n$ npm run dev\n```\n\n#### Updating dependencies\n\nTo update dependencies, globally install https://www.npmjs.com/package/npm-check-updates. Then run the below script,\nrun tests, test the application and commit the altered `package.json` and `package-lock.json` files. For more\noptions around updates check the package docs.\n\n```bash\nncu -i\n```\n\n### Production\n\nTo mimic the application running in `production` mode locally run:\n\n```bash\n$ npm start\n```\n\n### Npm scripts\n\nAll available Npm scripts can be seen in [package.json](./package.json)\nTo view them in your command line run:\n\n```bash\n$ npm run\n```\n\n## Versioning\n\n### Auto minor versioning\n\nThe [Publish GitHub Actions workflow](./.github/workflows/publish.yml) auto versions a Pull Requests code with a `minor`\nversion once it has been merged into the `main` branch.\nAll you have to do is commit your code and raise a Pull Request and the pipeline will auto version your code for you.\n\n### Major or Patch versioning\n\nIf you wish to `patch` or `major` version your codebase use:\n\n```bash\n$ npm version \u003cpatch|major\u003e\n```\n\nThen:\n\n- Push this code with the auto generated commit to your GitHub Repository\n- Raise a Pull Request\n- Merge your code into the `main` branch\n- The [Publish GitHub Actions workflow](./.github/workflows/publish.yml) will tag and push your `major` or `patch`\n  version tags to your GitHub Repository\n- The [Publish GitHub Actions workflow](./.github/workflows/publish.yml) will release your `major` or `patch`\n  versioned code\n\n## Docker\n\n### Development image\n\nBuild:\n\n```bash\n$ docker build --target development --no-cache --tag cdp-user-service-backend:development .\n```\n\nRun:\n\n```bash\n$ docker run -e GITHUB_API_TOKEN -p 3008:3008 cdp-user-service-backend:development\n```\n\n### Production image\n\nBuild:\n\n```bash\ndocker build --no-cache --tag cdp-user-service-backend .\n```\n\nRun:\n\n```bash\n$ docker run -e GITHUB_API_TOKEN -p 3001:3001 cdp-user-service-backend\n```\n\n## Licence\n\nTHIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:\n\n\u003chttp://www.nationalarchives.gov.uk/doc/open-government-licence/version/3\u003e\n\nThe following attribution statement MUST be cited in your products and applications when using this information.\n\n\u003e Contains public sector information licensed under the Open Government license v3\n\n### About the licence\n\nThe Open Government Licence (OGL) was developed by the Controller of Her Majesty's Stationery Office (HMSO) to enable\ninformation providers in the public sector to license the use and re-use of their information under a common open\nlicence.\n\nIt is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Fcdp-user-service-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefra%2Fcdp-user-service-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Fcdp-user-service-backend/lists"}