{"id":20038695,"url":"https://github.com/defra/cdp-example-node-backend","last_synced_at":"2026-04-18T12:35:15.871Z","repository":{"id":221690162,"uuid":"755100709","full_name":"DEFRA/cdp-example-node-backend","owner":"DEFRA","description":"Git repository for service cdp-example-node-backend","archived":false,"fork":false,"pushed_at":"2026-04-13T12:59:21.000Z","size":577,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-04-13T14:28:40.332Z","etag":null,"topics":["backend","cdp","node","service"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"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":"2024-02-09T12:58:46.000Z","updated_at":"2026-04-13T12:57:49.000Z","dependencies_parsed_at":"2024-03-13T17:29:59.109Z","dependency_job_id":"efa7bfb9-3988-4c6a-9cd2-aa9272100951","html_url":"https://github.com/DEFRA/cdp-example-node-backend","commit_stats":null,"previous_names":["defra/cdp-example-node-backend"],"tags_count":82,"template":false,"template_full_name":null,"purl":"pkg:github/DEFRA/cdp-example-node-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fcdp-example-node-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fcdp-example-node-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fcdp-example-node-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fcdp-example-node-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DEFRA","download_url":"https://codeload.github.com/DEFRA/cdp-example-node-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fcdp-example-node-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31969762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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:32:01.992Z","updated_at":"2026-04-18T12:35:15.860Z","avatar_url":"https://github.com/DEFRA.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cdp-example-node-backend\n\nCore delivery platform Node.js Backend example.\n\nBased on the CDP template https://github.com/DEFRA/cdp-node-backend-template.\n\n![Publish workflow](https://github.com/DEFRA/cdp-example-node-backend/actions/workflows/publish.yml/badge.svg)[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=DEFRA_cdp-example-node-backend\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=DEFRA_cdp-example-node-backend)\n\n---\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- [API endpoints](#api-endpoints)\n- [Calling API endpoints](#calling-api-endpoints)\n  - [Postman](#postman)\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\ncd cdp-example-node-backend\nnvm use\n```\n\n## Local development\n\n### Setup\n\nInstall application dependencies:\n\n```bash\nnpm install\n```\n\n### Development\n\nTo run the application in `development` mode run:\n\n```bash\nnpm 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\nnpm 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\nnpm run\n```\n\n## API endpoints\n\n| Endpoint                       | Description  |\n| :----------------------------- | :----------- |\n| `GET: /health`                 | Health       |\n| `GET: /v1/entities`            | Entities     |\n| `GET: /v1/entities/\u003centityId\u003e` | Entity by ID |\n\n## Calling API endpoints\n\n### Postman\n\nA [Postman](https://www.postman.com/) collection and environment are available for making calls to the Teams and\nRepositories API. Simply import the collection and environment into Postman.\n\n- [CDP Node Backend Template Postman Collection](postman/cdp-example-node-backend.postman_collection.json)\n- [CDP Node Backend Template Postman Environment](postman/cdp-example-node-backend.postman_environment.json)\n\n## Docker\n\n### Development image\n\nBuild:\n\n```bash\ndocker build --target development --no-cache --tag cdp-example-node-backend:development .\n```\n\nRun:\n\n```bash\ndocker run -e GITHUB_API_TOKEN -p 3008:3008 cdp-example-node-backend:development\n```\n\n### Production image\n\nBuild:\n\n```bash\ndocker build --no-cache --tag cdp-example-node-backend .\n```\n\nRun:\n\n```bash\ndocker run -e GITHUB_API_TOKEN -p 3001:3001 cdp-example-node-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-example-node-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefra%2Fcdp-example-node-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Fcdp-example-node-backend/lists"}