This folder is the start of the migration to ASP.NET Core + React + Flutter (Database-first EF Core + JWT auth).
Quick overview:
- Backend: ASP.NET Core (net8.0) Web API
- Web Frontend: Next.js/React (ClientApp)
- Mobile Frontend: Flutter (MobileApp) for iOS/Android
- Database: SQL Server (Database-first EF Core) — your old DB script / instance will be used to scaffold models
- Auth: JWT + ASP.NET Identity (instructions included)
Important: this repository skeleton is intentionally minimal. It includes configuration and instructions you can run locally to finish the database-first scaffold (you asked to use SQL Server instance: GERGES-YOUSSEF\\SQLEXPRESS).
Getting started:
-
Ensure .NET SDK 8.0 (recommended LTS) or later is installed.
-
From the repo root, restore and build:
cd LawyerSys
dotnet restore
dotnet build-
Create or restore the database using the included SQL script (if you haven't already). In SQL Server Management Studio, run
DB/LawyerSys Script.sqlagainst your SQL Server instance. -
Scaffold EF Core models (Database-first):
Make sure dotnet-ef tool is installed:
dotnet tool install --global dotnet-efScaffold the DB context and entities (run from the LawyerSys project directory). Replace <SERVER> with your SQL Server instance name:
dotnet ef dbcontext scaffold "Server=<SERVER>;Database=LawyerSys;Trusted_Connection=True;MultipleActiveResultSets=true" Microsoft.EntityFrameworkCore.SqlServer --output-dir Data/Models --context ApplicationDbContext --context-dir Data --forceThis will generate the EF Core models into Data/Models and an ApplicationDbContext in Data.
- Adjust
appsettings.Development.jsonconnection string and JWT settings then run the app:
dotnet run- Open
ClientAppand run the React dev server (instructions will appear inClientApp/README.md).
The MobileApp/ directory will contain a Flutter mobile application for iOS and Android that connects to the same ASP.NET Core Web API backend.
Prerequisites:
- Flutter SDK 3.x or later
- Android Studio (for Android development)
- Xcode (for iOS development, macOS only)
Setup:
cd MobileApp
flutter pub get
flutter runThe mobile app uses JWT authentication with the same backend API endpoints.
If you prefer separate backend + frontend projects or want additional setup steps (IIS hosting, Docker, CI), tell me and I will add them.
cd "e:\Gerges Files\LawyerSys-v2\MobileApp" flutter run -d emulator-5554