Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ramon-felipe/grpc_discount
https://github.com/ramon-felipe/grpc_discount
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ramon-felipe/grpc_discount
- Owner: ramon-felipe
- Created: 2024-08-13T15:06:58.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-13T22:18:44.000Z (5 months ago)
- Last Synced: 2024-11-09T18:30:35.627Z (2 months ago)
- Language: C#
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gRPC approach
It consists in two services: one for generating discount codes and another one to apply those discount codes.
The generated codes are saved in a SQL Server database. This project uses EF Core as ORM.
This solution has a client project used for testing...
This client is performing the following actions:1. Create discount codes
2. Get the last one from DB
3. Apply this last discount code.Applied codes are deleted from DB.
creating some discount codes (you can modify the quantity of codes and their length).
allowed lengths are: 7 or 8.# Running the solution
The solution starts two projects simultaneously: The API and the client.So, when running the solution the client will perform the actions mentioned above.