https://github.com/defra/cdms-backend
Git repository for service cdms-backend
https://github.com/defra/cdms-backend
backend cdp dotnet service
Last synced: 8 months ago
JSON representation
Git repository for service cdms-backend
- Host: GitHub
- URL: https://github.com/defra/cdms-backend
- Owner: DEFRA
- Archived: true
- Created: 2024-10-23T09:16:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-03T13:07:33.000Z (over 1 year ago)
- Last Synced: 2025-02-09T03:45:03.579Z (over 1 year ago)
- Topics: backend, cdp, dotnet, service
- Language: C#
- Size: 856 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cdms-backend
Core delivery C# ASP.NET backend template.
* [Install MongoDB](#install-mongodb)
* [Inspect MongoDB](#inspect-mongodb)
* [Testing](#testing)
* [Running](#running)
* [Dependabot](#dependabot)
### Install MongoDB
- Install [MongoDB](https://www.mongodb.com/docs/manual/tutorial/#installation) on your local machine
- Start MongoDB:
```bash
sudo mongod --dbpath ~/mongodb-cdp
```
### Inspect MongoDB
To inspect the Database and Collections locally:
```bash
mongosh
```
### Testing
Run the tests with:
Tests run by running a full `WebApplication` backed by [Ephemeral MongoDB](https://github.com/asimmon/ephemeral-mongo).
Tests do not use mocking of any sort and read and write from the in-memory database.
```bash
dotnet test
````
### Running
Run CDP-Deployments application:
```bash
dotnet run --project CdmsBackend --launch-profile Development
```
### SonarCloud
Example SonarCloud configuration are available in the GitHub Action workflows.
### Dependabot
We have added an example dependabot configuration file to the repository. You can enable it by renaming
the [.github/example.dependabot.yml](.github/example.dependabot.yml) to `.github/dependabot.yml`