https://github.com/felixmk0/egranjacat
RESTful API built with .NET 8 and C#, following clean architecture and using SQL Server with a single-tenant-per-database model. Includes JWT authentication, role- and policy-based access control, Swagger docs, cron jobs, SMTP support, third-party service integrations, and more.
https://github.com/felixmk0/egranjacat
aspnet authorization cron-jobs csharp dotnet generalitat generalitat-de-catalunya jwt jwt-authentication mapa presvet rest-api restful-api smtp sql sql-server swagger third-party
Last synced: 5 months ago
JSON representation
RESTful API built with .NET 8 and C#, following clean architecture and using SQL Server with a single-tenant-per-database model. Includes JWT authentication, role- and policy-based access control, Swagger docs, cron jobs, SMTP support, third-party service integrations, and more.
- Host: GitHub
- URL: https://github.com/felixmk0/egranjacat
- Owner: felixmk0
- Created: 2025-07-31T18:39:44.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-08-08T15:29:46.000Z (5 months ago)
- Last Synced: 2025-08-08T16:09:38.409Z (5 months ago)
- Topics: aspnet, authorization, cron-jobs, csharp, dotnet, generalitat, generalitat-de-catalunya, jwt, jwt-authentication, mapa, presvet, rest-api, restful-api, smtp, sql, sql-server, swagger, third-party
- Language: C#
- Homepage:
- Size: 614 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eGranjaCAT
## About
The eGranjaCAT API is developed with .NET 8 and C#, providing an integrated solution to modernize pig farm management in Catalonia. It uses a single-tenant-per-database architecture to ensure data isolation and client-specific customization.
This RESTful API integrates official systems such as Gestió Telemàtica Ramadera (GTR), Spain’s Ministerio de Agricultura, Pesca y Alimentación (MAPA), the PresVet antibiotic prescription surveillance system, and offers native support for generating and digitally signing veterinary electronic prescriptions without relying on third-party software (some features still in progress).
Additional capabilities include secure JWT authentication with role- and policy-based access control, scheduled background jobs, SMTP email support, and PDF/XLSX document generation, and more. All aimed at simplifying and automating daily farm operations.
## License
**© 2025 Felix Montragull Kruse. All rights reserved.**
This project and its source code are the exclusive property of Felix Montragull Kruse. No part of this software may be copied, modified, distributed, or used without explicit permission.
### Notes:
Add Migration:
```dotnet ef migrations add {Migration Name} --project eGranjaCAT.Infrastructure --startup-project eGranjaCAT.API --context ApplicationDbContext --output-dir Persistence/Migrations```
Update Database:
```dotnet ef database update --project eGranjaCAT.Infrastructure --startup-project eGranjaCAT.API --context ApplicationDbContext```