https://github.com/defra/pd-cdp-demo-payment
Git repository for service pd-cdp-demo-payment
https://github.com/defra/pd-cdp-demo-payment
backend cdp dotnet service
Last synced: about 2 months ago
JSON representation
Git repository for service pd-cdp-demo-payment
- Host: GitHub
- URL: https://github.com/defra/pd-cdp-demo-payment
- Owner: DEFRA
- Created: 2024-08-23T09:11:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-27T14:09:02.000Z (almost 2 years ago)
- Last Synced: 2025-01-12T19:10:29.910Z (over 1 year ago)
- Topics: backend, cdp, dotnet, service
- Language: C#
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pd-cdp-demo-payment
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 PdCdpDemoPayment --launch-profile Development
```