A lightweight starter template for building production-ready RESTful APIs with ASP.NET Core 9, including:
- ✅ Entity Framework Core + PostgreSQL (done)
- ✅ Authentication & RBAC Authorization (JWT-ready structure) (in progress)
- ✅ Request Validation using FluentValidation (in progress)
- ✅ Simple CRUD controller example (done)
- ✅ Dockerfile + Docker Compose (backend + Postgres + pgAdmin) (done)
- ✅ clean structure ready to extend (in progress)
Basic CRUD controller to demonstrate routing, DTOs, models, and service structure.
Centralized validation for incoming API requests.
Skeleton structure to plug in:
- JWT tokens
- Admin/user roles
- Auth middleware
Runs using Docker Compose with:
- Backend service
- PostgreSQL database
- pgAdmin for DB management
dotnet restore
dotnet ef database update
dotnet rundocker compose up --buildBackend runs on: http://localhost:8080
Postgres on: localhost:5433 (or 5432 inside Docker)
pgAdmin on: http://localhost:3060
Configured via appsettings.json or environment variables:
Host=database;Port=5432;Database=library_db;Username=library_user;Password=library_password;
/Controllers → API endpoints
/Models → Entities
/Data → DbContext
/Validators → FluentValidation
/Auth → Auth logic structure
Dockerfile
docker-compose.yml
This repository serves as a clean skeleton to start any ASP.NET Core backend project with:
- Auth/authz foundations
- Validation
- Dockerized environment
- CRUD examples
- EF Core setup
You can clone it as a starting point for new services or learning.
- ✅ A clean app structure
- ✅ Recommended folder structure
- ✅ Auth/login/register implementation
- ✅ Ready-to-use JWT logic
- ✅ Ready-to-use migrations setup and db connections
- ✅ Ready-to-use docker and docker compose setup
Just tell me!