Skip to content

Latest commit

 

History

250 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LawyerSys-v2

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:

  1. Ensure .NET SDK 8.0 (recommended LTS) or later is installed.

  2. From the repo root, restore and build:

cd LawyerSys
dotnet restore
dotnet build
  1. Create or restore the database using the included SQL script (if you haven't already). In SQL Server Management Studio, run DB/LawyerSys Script.sql against your SQL Server instance.

  2. Scaffold EF Core models (Database-first):

Make sure dotnet-ef tool is installed:

dotnet tool install --global dotnet-ef

Scaffold 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 --force

This will generate the EF Core models into Data/Models and an ApplicationDbContext in Data.

  1. Adjust appsettings.Development.json connection string and JWT settings then run the app:
dotnet run
  1. Open ClientApp and run the React dev server (instructions will appear in ClientApp/README.md).

Mobile App (Flutter)

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 run

The 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.

Flutter App

cd "e:\Gerges Files\LawyerSys-v2\MobileApp" flutter run -d emulator-5554

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages