https://github.com/defra/btms-gateway-stub
Git repository for service btms-gateway-stub
https://github.com/defra/btms-gateway-stub
backend cdp dotnet service
Last synced: 4 months ago
JSON representation
Git repository for service btms-gateway-stub
- Host: GitHub
- URL: https://github.com/defra/btms-gateway-stub
- Owner: DEFRA
- License: other
- Created: 2024-12-02T16:34:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-02-05T10:07:30.000Z (5 months ago)
- Last Synced: 2025-02-06T23:18:28.834Z (5 months ago)
- Topics: backend, cdp, dotnet, service
- Language: C#
- Size: 123 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BTMS Gateway Stub
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 BtmsGatewayStub --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`