https://github.com/tgrifoni/cashlessregistration
Short microservice to generate tokens for cashless registration.
https://github.com/tgrifoni/cashlessregistration
api asp-net-core backend csharp microservice rest
Last synced: about 1 year ago
JSON representation
Short microservice to generate tokens for cashless registration.
- Host: GitHub
- URL: https://github.com/tgrifoni/cashlessregistration
- Owner: tgrifoni
- Created: 2021-01-18T02:25:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-19T20:11:42.000Z (about 5 years ago)
- Last Synced: 2023-03-07T05:26:56.697Z (about 3 years ago)
- Topics: api, asp-net-core, backend, csharp, microservice, rest
- Language: C#
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cashless Registration
Short microservice to generate tokens for cashless registration.
## Description
There are basically just two endpoints: One to save card data, which will return a token, and another one where you can validate the token to check if it is valid. All data is saved in memory, using CQRS to keep different models for saving and validating.
## Tech stack
The API was developed using .NET 5, using Swagger for documentation and Docker support for Linux coverage. FluentValidation is being used to make sure the requests are valid, AutoMapper to create mappings for the models, and MediatR to handle commands and queries. A very simple authentication using JWT was included just as an example. For saving data, there is a Dapper + Sqlite combination. There are unit and integration tests, developed using xUnit.
## Coming next
Ideally, it would be nice to introduce BDD (with Specflow) to better explain features, and bind them to the tests. It would also be nice to introduce a NoSQL database (like LiteDB) to enhance the CQRS pattern.
Ideas and suggestions are very welcome ! :)