AI-assisted, multi-tenant support platform API built with ASP.NET Core (.NET 10).
Status: in development. Phase 0 (foundation) is done. Phase 1 is in progress: the Identity domain (organizations and users) and its database schema are in place; the first API endpoints are next.
- Multi-tenant organizations with role-based access (domain and database done)
- Support tickets with a defined lifecycle
- Knowledge base: document upload and background processing
- AI-suggested replies grounded in company documents, with sources
- Notifications
A modular monolith: one deployable app, split into modules with enforced boundaries. Each module has its own layers and its own database schema. See ADR-0001.
flowchart TD
Host --> Identity
Host -.-> Tickets
Host -.-> KnowledgeBase
Host -.-> AiAssistant
Host -.-> Notifications
Solid arrows are implemented, dashed arrows are planned.
| ADR | Decision |
|---|---|
| 0001 | Modular monolith with Clean Architecture per module |
| 0002 | PostgreSQL as the relational database |
| 0003 | JWT authentication with a custom User and PasswordHasher |
| 0004 | User email is unique across the whole system |
- ASP.NET Core Web API, C#, .NET 10
- Entity Framework Core with PostgreSQL (Npgsql)
- xUnit and NetArchTest for tests
- GitHub Actions for CI
Prerequisites: .NET 10 SDK, PostgreSQL, and the EF Core CLI
(dotnet tool install --global dotnet-ef).
-
Clone the repository:
git clone https://github.com/Youssef11-dev/basira-support-api.git cd basira-support-api -
Set the connection string (stored in user secrets, not in the repo):
dotnet user-secrets set "ConnectionStrings:Default" "Host=localhost;Port=5432;Database=basira_dev;Username=postgres;Password=<your-password>" --project src/Host
-
Create the database schema by applying the migrations:
dotnet ef database update --project src/Modules/Identity/Infrastructure --startup-project src/Host --context IdentityDbContext
-
Run the API:
dotnet run --project src/Host
Then open /health on the URL printed in the console. It should return Healthy.
dotnet testsrc/
Host/ composition root (Program.cs)
BuildingBlocks/ shared abstractions (Entity, DomainException)
Modules/
Identity/
Domain/ Organization, User, UserRole
Application/ use cases (planned)
Infrastructure/ IdentityDbContext, Persistence/ (configurations, migrations)
Contracts/ public API for other modules (planned)
Api/ endpoints (planned)
tests/
Architecture.Tests/ enforces module and layer boundaries
Identity.UnitTests/ domain tests for Organization and User
docs/
adr/ architecture decision records
- Phase 0: foundation (structure, architecture tests, CI)
- Phase 1: Identity and Tickets (in progress)
- Phase 2: production concerns (background jobs, caching, observability)
- Phase 3: knowledge base and AI assistant
- Phase 4: polish and deployment