https://github.com/defra/tdm-prototype-cds-simulator
Git repository for service tdm-prototype-cds-simulator
https://github.com/defra/tdm-prototype-cds-simulator
backend cdp dotnet service
Last synced: over 1 year ago
JSON representation
Git repository for service tdm-prototype-cds-simulator
- Host: GitHub
- URL: https://github.com/defra/tdm-prototype-cds-simulator
- Owner: DEFRA
- Created: 2024-08-23T15:31:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-23T15:31:20.000Z (almost 2 years ago)
- Last Synced: 2025-01-12T19:10:30.152Z (over 1 year ago)
- Topics: backend, cdp, dotnet, service
- Language: C#
- Size: 25.4 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tdm-prototype-cds-simulator
Core delivery C# ASP.NET backend template.
### 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 TdmPrototypeCdsSimulator --launch-profile Development
```