This API was meant to be a POC for some libs that are used in C# API development, i've studied some of those libraries and applied them in here. Here's the list of the libs that i've used in this project:
- Automapper \
- Dapper \
- XUnit \
- Moq
I'm algo using a clean architectural pattern, despite not using a .csproj
for every layer of the API, the folder structure and the relationship between classes matches the concept.
The currently folder structure is:
./API
โโโ Controllers
โย ย
โโโ Data
โย ย โโโ Interfaces
โย ย โโโ Repositories
โโโ Domain
โย ย โโโ Entities
โโโ Filters
โโโ Logic
โย ย โโโ DTOs
โย ย โย ย โโโ BandDtos
โย ย โย ย โโโ ConcertDto
โย ย โโโ Interfaces
โย ย โโโ MapperProfiles
โย ย โโโ Services
Although the project is not yet finished, i'm keeping my hands out of this code for awhile because it's time to focus on some other things like middlewares, pagination, sorting and making a deploy for this API, or even make a nice UI for this project.
Anyway, i'm going to add a dockerfile and a docker compose for this poject because there's where i'm at right now.
Feel free to contribute to this project or put some toughts about this code.