Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

Basira

AI-assisted, multi-tenant support platform API built with ASP.NET Core (.NET 10).

CI

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.

Features

  • 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

Architecture

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
Loading

Solid arrows are implemented, dashed arrows are planned.

Architecture decisions

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

Tech stack

  • ASP.NET Core Web API, C#, .NET 10
  • Entity Framework Core with PostgreSQL (Npgsql)
  • xUnit and NetArchTest for tests
  • GitHub Actions for CI

Getting started

Prerequisites: .NET 10 SDK, PostgreSQL, and the EF Core CLI (dotnet tool install --global dotnet-ef).

  1. Clone the repository:

    git clone https://github.com/Youssef11-dev/basira-support-api.git
    cd basira-support-api
  2. 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
  3. Create the database schema by applying the migrations:

    dotnet ef database update --project src/Modules/Identity/Infrastructure --startup-project src/Host --context IdentityDbContext
  4. Run the API:

    dotnet run --project src/Host

Then open /health on the URL printed in the console. It should return Healthy.

Running tests

dotnet test

Project structure

src/
  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

Roadmap

  • 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

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages