Skip to content

BenkacemIbrahim/ClinicOps

ClinicOps Nexus

ClinicOps Nexus is a full-stack clinic operations platform built with Laravel + Next.js. It centralizes patient lifecycle, scheduling, surgeries, payments, clinic settings, and KPI analytics in a multilingual interface.

Why This Project

  • Unifies clinical operations in one workflow-oriented dashboard
  • Provides a modern frontend + token-secured REST API architecture
  • Supports multilingual user experiences (French, English, Arabic)
  • Includes backend automated tests and production build validation

Monorepo Structure

.
|-- clinic-backend/   # Laravel 11 API
|-- clinic-frontend/  # Next.js 15 web app
`-- docs/             # Repository-level documentation

Architecture

  • Frontend: Next.js App Router + TypeScript + Zustand + Radix UI
  • Backend: Laravel 11 + Sanctum + Eloquent + Policies/Gates
  • Data: MySQL in development/production, SQLite for test suite
  • Auth: Username/password login with Sanctum token flow

See docs/ARCHITECTURE.md for detailed flow.

Key Features

  • Authentication and profile management
  • Patient management (search/filter/create/update/delete/restore)
  • Doctor management
  • Appointment management with conflict detection and slot lookup
  • Surgery management with schedule validation
  • Payment tracking + webhook stub integration
  • Dashboard analytics (revenue, patients, appointments, surgeries)
  • Contact form intake and admin message handling
  • Clinic settings persistence

Local Setup

1. Backend

cd clinic-backend
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate --seed
php artisan serve

Backend API: http://localhost:8000/api

2. Frontend

cd clinic-frontend
pnpm install
cp .env.example .env.local
pnpm dev

Frontend app: http://localhost:3000

Default Admin Credentials (seeded)

  • Username: admin
  • Password: password123

Quality Status

Validated during cleanup:

  • Backend tests: vendor/bin/phpunit -> passing (36 tests, 140 assertions)
  • Frontend lint: pnpm lint -> passing (warnings only)
  • Frontend production build: pnpm build -> passing

API Reference

  • High-level endpoint map: docs/API_OVERVIEW.md
  • OpenAPI spec: clinic-backend/docs/openapi.yaml

Repository Standards

This repository now includes:

  • CONTRIBUTING.md
  • CODE_OF_CONDUCT.md
  • SECURITY.md
  • CHANGELOG.md
  • LICENSE

About

Multilingual full-stack clinic operations platform built with Laravel and Next.js, covering secure authentication, patient lifecycle management, appointment/surgery scheduling, payment tracking, and analytics dashboards for data-driven clinic workflows.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors