ASP.NET Core Web API implementing the backend for the Real Estate Listing application.
The backend follows Onion Architecture:
-
Domain
- Entities
- Enums
- Core business rules
-
Application
- DTOs
- Interfaces
- Services
- AutoMapper profiles
-
Infrastructure
- EF Core DbContext
- Repository implementations
- Identity configuration
-
API
- Controllers
- Authentication
- Middleware
- Microsoft Identity
- JWT Bearer authentication
- Roles:
- Buyer
- Admin
JWT includes:
- User Id
- Roles
Issuer & Audience validation is enabled.
- SQL Server
- EF Core (Code First)
- Migrations enabled
- Seed data:
- Roles
- Admin user
- Sample properties
"Jwt": {
"Key": "SUPER_SECRET_KEY",
"Issuer": "RealEstateApi",
"Audience": "RealEstateClient"
}
### Code Dependencies
| Tool | Version |
|----|--------|
| .NET SDK | 8.x |
| SQL Server | 2019+ |
| Visual Studio 2022 | 2019+ |
Replace the connection string and then run the project