Skip to content

ismailelghazi/InsuranceManagementPlatform_IMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฆบ FastAPI + React Insurance Manager

A simple web platform to manage insurance clients, contracts, payments, and financial reports. Built with Python FastAPI (backend) and React/SolidJS (frontend).


๐Ÿš€ What can you do with this app?

  • ๐Ÿ” Login securely as an admin user
  • ๐Ÿ“ฅ Upload Excel files with lists of clients and insurance contracts
  • ๐Ÿ‘ฅ See all clients (โ€œAssurรฉsโ€) and add new ones
  • ๐Ÿ“„ View and manage contracts and payment status
  • ๐Ÿ’ต Track payments (โ€œRรจglementsโ€) and see payment history
  • ๐Ÿ“‘ Download PDF reports for caisse (cash) and credit status
  • ๐Ÿ“Š Get a dashboard with total clients, contracts, and financial summaries

๐Ÿ› ๏ธ How to run it

1. Backend (API server)

  1. Go to the back folder:
    cd back
  2. Install Python requirements:
    pip install -r requirements.txt
  3. Start the API server:
    uvicorn main:app --reload

2. Frontend (Web app)

  1. Go to the front folder:
    cd front
  2. Install JS dependencies:
    npm install
  3. Start the frontend:
    npm run dev
  4. Open ๐ŸŒ http://localhost:3000 in your browser.

๐Ÿ“š How to use

  1. ๐Ÿ” Login: Use your admin account.
  2. ๐Ÿ“ฅ Upload Excel: Go to โ€œUpload Excelโ€ and select your file (see below for format).
  3. ๐Ÿ‘ฅ Manage clients: Go to โ€œAssurรฉsโ€ to add, search, or delete clients.
  4. ๐Ÿ“„ View contracts: Go to โ€œProductsโ€ for all contracts.
  5. ๐Ÿ’ต Track payments: See โ€œRรจglements,โ€ make new payments, or check details.
  6. ๐Ÿ“‘ Reports: Go to โ€œCaisseโ€ or โ€œCreditโ€ to filter and export PDF reports.

๐Ÿ“Š Excel Upload Format

  • Sheet 1: Clients, columns: CIN, Assurรฉ
  • Sheet 2: Contracts, columns: Date Emission, Police, Date effet, Prime Totale, CIN, Fractionn, Matricule

โš™๏ธ Tech Stack

  • ๐Ÿ Python, ๐Ÿš€ FastAPI, ๐Ÿ›ข๏ธ SQLAlchemy, ๐Ÿผ Pandas
  • โš›๏ธ React (SolidJS), ๐ŸŽจ Tailwind CSS
  • ๐Ÿ“ jsPDF, ๐Ÿ’ฌ SweetAlert2

๐Ÿ‘ค Author

Ismail El Ghazi

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •