Medical is a full-stack web application that allows the user to manage a medical clinic.
-
There are three roles in this app, each with a particular level of access:
-
SECRETARY can:
- Login
- Create a new appointment
- View list of the patients and the doctors in registered in the app.
-
DOCTOR can:
- Do anything a secretary can do.
- Manage the patient assigned to him (has/had appointment with them).
- Manage the patient's profile (see the use case diagram).
-
ADMIN can:
- Do anything a doctor & secretary can do.
- manage users of the app.
- Laravel V9 : web application framework
- AdminLTE Bootstrap Admin Dashboard Template
-
Dependencies install :
git clone https://github.com/munazzil4/laravel_medical.git cd ./laravel_medical composer install --ignore-platform-reqs npm install
-
Database setup
- Create an empty database on phpmyadmin
- Copy content of
.env.example
into new.env
filecp .env.example .env
- Change those values on the
.env
fileDB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=db_name DB_USERNAME=root DB_PASSWORD=db_password
- Migrate the database
php artisan migrate
- [Optional]: Seed the database
php artisan db:seed
check
database/seeders/DatabaseSeeder.php
for details.
3. Login to the app:
- if you checked
DatabaseSeeder.php
,as you will notice that 4 users has been created :
role | password | |
---|---|---|
Admin | [email protected] | 123456 |
Doctor | [email protected] | 123456 |
Doctor | [email protected] | 123456 |
Secretary | [email protected] | 123456 |