Skip to content

mansi-projects02/medico-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔬 Medico Diagnostics — Lab Management System

A full-stack Admin Panel built for a diagnostic lab to manage daily patient records, test tracking, payments, and doctor references.


🖥️ Tech Stack

Frontend Backend Database Auth
React.js Laravel MySQL Laravel Sanctum
CSS3 REST API phpMyAdmin Token-based

✨ Features

  • 🔐 Secure Admin Login — Token-based authentication via Laravel Sanctum
  • 👤 Patient Management — Add, edit, delete, view patient records
  • 🧪 Test Selection — 34+ pre-loaded lab tests + custom test support
  • 💰 Payment Tracking — Total, Paid & Due amount with mode (Cash/UPI/Card/Online/Due)
  • 🩺 Doctor Reference — Doctor name + Referral Code tracking
  • 🔍 Advanced Search — Filter by name, date, date range, doctor, payment mode
  • 📊 Dashboard — Today's patients, monthly count, total & today's collection, dues
  • 📝 Remarks — Notes/instructions per patient record

📁 Project Structure

medico-backend/               ← Laravel REST API
├── app/
│   ├── Http/Controllers/
│   │   ├── AuthController.php
│   │   └── PatientController.php
│   └── Models/
│       └── Patient.php
├── database/
│   ├── migrations/
│   └── seeders/
│       └── AdminSeeder.php
└── routes/
    └── api.php

medico-frontend/              ← React Admin Panel
└── src/
    ├── components/
    │   ├── Login.jsx / Login.css
    │   ├── Sidebar.jsx
    │   ├── Dashboard.jsx
    │   ├── PatientsPage.jsx
    │   ├── PatientForm.jsx
    │   ├── PatientDetail.jsx
    │   ├── PayBadge.jsx
    │   └── Toast.jsx
    ├── utils/
    │   └── api.js
    └── App.jsx

🚀 Local Setup

Prerequisites

  • PHP
  • Composer
  • Node.js
  • MySQL (or XAMPP)

Backend Setup

cd medico-backend

composer install
cp .env.example .env

php artisan key:generate
php artisan migrate
php artisan db:seed --class=AdminSeeder
php artisan serve

Frontend Setup

cd medico-frontend

npm install
npm start

Default Admin Credentials

Email    : admin@medicodiagnostics.com
Password : medico@2026

📸 Screenshots

Dashboard Login
Dashboard Login
Add Patient Patient List
Add Patient Patients

🔗 API Endpoints

Method Endpoint Description Auth
POST /api/login Admin login
POST /api/logout Logout
GET /api/patients List + Search
POST /api/patients Add patient
GET /api/patients/{id} Single patient
PUT /api/patients/{id} Update patient
DELETE /api/patients/{id} Delete patient
GET /api/patients/stats Dashboard stats

👩‍💻 Developer

Made with ❤️ by Me

About

Full-stack Lab Management Admin Panel built with React.js & Laravel — patient records, test tracking, payment management & secure authentication.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages