{"id":20038637,"url":"https://github.com/defra/tdm-prototype-backend","last_synced_at":"2025-03-02T06:26:09.624Z","repository":{"id":254405458,"uuid":"846137988","full_name":"DEFRA/tdm-prototype-backend","owner":"DEFRA","description":"Git repository for service tdm-prototype-backend","archived":false,"fork":false,"pushed_at":"2024-11-26T15:06:16.000Z","size":560,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-12T19:09:01.769Z","etag":null,"topics":["backend","cdp","dotnet","service"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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}},"created_at":"2024-08-22T15:51:31.000Z","updated_at":"2024-11-26T15:04:47.000Z","dependencies_parsed_at":"2024-10-28T14:45:03.655Z","dependency_job_id":"39e7a8e9-7576-44f1-b5f8-d37d9202869a","html_url":"https://github.com/DEFRA/tdm-prototype-backend","commit_stats":null,"previous_names":["defra/tdm-prototype-backend"],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Ftdm-prototype-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Ftdm-prototype-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Ftdm-prototype-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Ftdm-prototype-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DEFRA","download_url":"https://codeload.github.com/DEFRA/tdm-prototype-backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241469016,"owners_count":19967979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","dotnet","service"],"created_at":"2024-11-13T10:31:10.155Z","updated_at":"2025-03-02T06:26:09.588Z","avatar_url":"https://github.com/DEFRA.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tdm-prototype-backend\n\nCore delivery C# ASP.NET backend template.\n\n### Install MongoDB\n- Install [MongoDB](https://www.mongodb.com/docs/manual/tutorial/#installation) on your local machine\n- Start MongoDB:\n```bash\nsudo mongod --dbpath ~/mongodb-cdp\n```\n\n### Inspect MongoDB\n\nTo inspect the Database and Collections locally:\n```bash\nmongosh\n```\n\n### Testing\n\nRun the tests with:\n\nTests run by running a full `WebApplication` backed by [Ephemeral MongoDB](https://github.com/asimmon/ephemeral-mongo).\nTests do not use mocking of any sort and read and write from the in-memory database.\n\n```bash\ndotnet test\n````\n\n### Running\n\nRun CDP-Deployments application:\n```bash\ndotnet run --project TdmPrototypeBackend --launch-profile Development\n```\n\n### Testing push\n\n# tdm-prototype-backend-cli\nThis is a git style command line interface to be able to quickly automate common tasks that can be run manually or automated.\n\n## Project Dependencies\n\n|Package| Description  |\n|--|--|\n| [CommandLineParser](https://github.com/commandlineparser/commandline)| Used for parsing command line arguments  |\n| [MediatR](https://github.com/jbogard/MediatR) | Used as a mediator to segregate the commands the CLI will support  |\n| [Humanizer](https://github.com/Humanizr/Humanizer)| Used for converting strings |\n| [RazorLight](https://github.com/toddams/RazorLight)| Used for the templating engine for generating CSharp classes |\n| [JsonSchema.Net](https://github.com/jsonsystems/json-schema)| Used to convert the JsonSchema into an object model to be parsed |\n\n## Commands\n### generate-csharp-from-json-schema\n\n|Verb| Description  |\n|--|--|\n|generate-csharp-from-json-schema  | Generates Csharp classes from Json Schema. |\n\n|Option| Description  |\n|--|--|\n| -s, --schema  | The Json schema file, which to use to generate the csharp classes. |\n| -o, --outputPath   | The path to save the generated csharp classes. |\n\n\n### Example\n\n    generate-csharp-from-json-schema --schema C:\\jsonschema.json --outputPath C:\\output\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Ftdm-prototype-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefra%2Ftdm-prototype-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Ftdm-prototype-backend/lists"}