Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/defra/epr-payment-service
https://github.com/defra/epr-payment-service
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/defra/epr-payment-service
- Owner: DEFRA
- License: other
- Created: 2024-04-25T12:49:47.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-05T11:00:33.000Z (14 days ago)
- Last Synced: 2024-11-05T11:17:29.637Z (14 days ago)
- Language: C#
- Size: 442 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# epr-payment-service
## Description
Service to calculate fees and manage payment records for EPR## Getting Started
### Prerequisites
- .NET 8 SDK
- Visual Studio or Visual Studio Code
- MSSQL### Installation
1. Clone the repository:
```bash
git clone https://github.com/DEFRA/epr-payment-service.git
```
2. Navigate to the project directory:
```bash
cd \src\EPR.Payment.Service
```
3. Restore the dependencies:
```bash
dotnet restore
```### Configuration
The application uses appsettings.json for configuration. For development, use appsettings.Development.json.#### Sample
appsettings.Development.json```
{
"ConnectionStrings": {
"PaymentConnnectionString": "Data Source=.;Initial Catalog=FeesPayment;Trusted_Connection=true;TrustServerCertificate=true;"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"FeatureManagement": {
"EnablePaymentsFeature": true,
"EnablePaymentStatusInsert": true,
"EnablePaymentStatusUpdate": true,
"EnableGetPaymentByExternalPaymentId": true,
"EnableRegistrationFeesFeature": true,
"EnableProducerResubmissionAmount": true,
"EnableRegistrationFeesCalculation": true
}
}
```### Building the Application
1. Navigate to the project directory:
```bash
cd \src\EPR.Payment.Service
```2. To build the application:
```bash
dotnet build
```### Running the Application
1. Navigate to the project directory:
```bash
cd \src\EPR.Payment.Service
```
2. To run the service locally:
```bash
dotnet run
```3. Launch Browser:
Service Health Check:
[https://localhost:7107/health](https://localhost:7107/health)
Swagger:
[https://localhost:7107/swagger/index.html](https://localhost:7107/swagger/index.html)