https://github.com/jke94/soccer-crud
.NET Web Api: CRUD application (Create, Read, Update and Delete) basic operations. Focus on how to implement different technologies.
https://github.com/jke94/soccer-crud
architecture csharp database docker docker-compose dotnet efcore webapi
Last synced: 3 months ago
JSON representation
.NET Web Api: CRUD application (Create, Read, Update and Delete) basic operations. Focus on how to implement different technologies.
- Host: GitHub
- URL: https://github.com/jke94/soccer-crud
- Owner: jke94
- License: mit
- Created: 2023-06-30T17:42:42.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-24T14:38:58.000Z (almost 3 years ago)
- Last Synced: 2025-01-13T01:44:17.540Z (over 1 year ago)
- Topics: architecture, csharp, database, docker, docker-compose, dotnet, efcore, webapi
- Language: C#
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# .NET Web API demo: A CRUD Application
.NET Web Api: CRUD application (Create, Read, Update and Delete) basic operations. Focus on how to implement different technologies.
## A. Development status.
Legend (status implementation):
- ✅ Implemented
- ❔ Pending
Current state of development:
|| Status | Description |
| :---: | :---: | :--- |
|1| ✅ | Database persistence (using EF Core as ORM). |
|2| ✅ | Docker-compose to create differnt containers for database and webapi |
|3| ✅ | Web Api Authentication |
|4| ✅ | Web Api Authorization |
|5| ✅ | Web Api Health checks |
|6| ✅ | Solution with architecture layers (services with application logic, repository pattern, data access logic and data seeded for development environment) |
|7| ❔ | FastEndpoints (pending) |
|8| ✅ | Integration tests |
|9| ❔ | Web Api response with batching and pagination |
## B. Start SoccerCrud.WebApi (docker-compose)
- Windows:
```
docker-compose.exe -f ./docker-compose.yml -p soccer-crud up --build
```
- Linux
```
sudo docker compose -f ./docker-compose.yml -p soccer-crud up --build
```
After running the last command open the URL:
- http://localhost:5112/swagger/index.html
## C. Useful information.
### C.1. - Example: ASP.NET 6.0 Batching and pagination
- [Supercharging ASP.NET 6.0 with ODATA | CRUD | Batching | Pagination](https://dev.to/renukapatil/supercharging-aspnet-60-with-odata-crud-batching-pagination-12np)
### C.2.- Example: Integration testing in .NET
- [Elevate Your .NET Testing Strategy #1: WebApplicationFactory](https://goatreview.com/dotnet-testing-webapplicationfactory/?utm_content=257166118&utm_medium=social&utm_source=linkedin&hss_channel=lcp-18055275)
### C.3.- Example: Others
- [How to Compose an ASP.NET Core Web API (.NET 6) with an MS SQL Server 2022 on Linux in Docker](https://blog.christian-schou.dk/dockerize-net-core-web-api-with-ms-sql-server/)