This project is a Learning Management System (LMS) developed using Laravel. It allows users to manage courses, lessons, and enrollments. The system includes role-based access control, with admin users having additional privileges for managing courses and lessons.
- PHP >= “^8.1”
- Composer
- MySQL
-
Clone the repository:
git clone https://github.com/ahmedgalal2001/Learning-Management-System
-
Navigate to the project directory:
cd Learning-Management-System
-
Install dependencies:
composer install
-
Copy the
.env.example
file to.env
:copy .env.example .env
-
Generate Application Key:
php artisan key:generate
- Install Vite:
npm install vite@latest
-
Migrate the database:
php artisan migrate
-
Seed the database with dummy data (optional):
- this will create 10 courses and 10 user and one admin
- admin⇒ email:“ahmedgalal@iti.com” , password:”OSALEX123”
php artisan db:seed
To run the Laravel development server, execute the following command:
npm run dev
php artisan serve
The application will be accessible at http://localhost:8000
.
To run PHPUnit tests, use the following command:
php artisan test
This will execute all the feature tests defined in the tests/Feature
directory.
You can watch the demo video for the Learning Management System below: