🚑 Medimanage is the backend API for a Hospital Management System built with Laravel. This repository contains only the backend API, while an example frontend implementation can be found at: Hospital Management System Frontend.
- User authentication (Login, Signup, Google OAuth)
- Patient, Staff, and Department management
- Appointment scheduling
- Medication and Prescription tracking
- Laboratory test and order management
- Billing system
- Clone the repository:
git clone https://github.com/your-username/Medimanage.git cd Medimanage - Install dependencies:
composer install
- Set up environment file:
Configure your database and other settings inside the
cp .env.example .env
.envfile. - Generate application key:
php artisan key:generate
- Run migrations and seed data:
php artisan migrate --seed
- Start the server:
php artisan serve
POST api/login- User loginPOST api/signup- User registrationGET api/auth/info- Get authenticated user infoGET api/auth/google/redirect- Google OAuth redirectGET api/auth/google/callback- Google OAuth callback
GET api/user- Get all usersGET api/user/{id}- Get a specific userPOST api/user- Create a new userPATCH api/user/{id}- Update a userDELETE api/user/{id}- Delete a user
GET api/departmentGET api/department/{id}POST api/departmentPATCH api/department/{id}DELETE api/department/{id}
GET api/staffGET api/staff/{id}POST api/staffPATCH api/staff/{id}DELETE api/staff/{id}
GET api/patientGET api/patient/{id}POST api/patientPATCH api/patient/{id}DELETE api/patient/{id}
GET api/appointmentGET api/appointment/{id}POST api/appointmentPATCH api/appointment/{id}DELETE api/appointment/{id}
GET api/category/medicationGET api/category/medication/{id}POST api/category/medicationPATCH api/category/medication/{id}DELETE api/category/medication/{id}GET api/medicationGET api/medication/{id}POST api/medicationPATCH api/medication/{id}DELETE api/medication/{id}GET api/prescriptionGET api/prescription/{id}POST api/prescriptionPATCH api/prescription/{id}DELETE api/prescription/{id}GET api/detail/prescriptionGET api/detail/prescription/{id}POST api/detail/prescriptionPATCH api/detail/prescription/{id}DELETE api/detail/prescription/{id}
GET api/labtestGET api/labtest/{id}POST api/labtestPATCH api/labtest/{id}DELETE api/labtest/{id}GET api/laborderGET api/laborder/{id}POST api/laborderPATCH api/laborder/{id}DELETE api/laborder/{id}GET api/detail/laborderGET api/detail/laborder/{id}POST api/detail/laborderPATCH api/detail/laborder/{id}DELETE api/detail/laborder/{id}
GET api/billGET api/bill/{id}POST api/billPATCH api/bill/{id}DELETE api/bill/{id}GET api/item/billGET api/item/bill/{id}POST api/item/billPATCH api/item/bill/{id}DELETE api/item/bill/{id}
This API uses Laravel Sanctum for authentication. Ensure you send the authorization token with requests that require authentication.
Example:
Authorization: Bearer {your_token}- Laravel (PHP Framework)
- MySQL (Database)
- Sanctum (Authentication)
This project is open-source and available under the MIT License.
Developed by Apil Khadka.