Laravel is accessible, powerful, and provides tools required for large, robust applications.
Requirements:
- PHP 8.2
- Composer
- MySQL / [XAMPP] (https://www.apachefriends.org/download.html) Setup:
- From the root directory (where this file
README.md
is located) navigate to the application source directory:cd code/
- Execute the installation script
bash init.sh
OR run commands individually:- Install dependencies:
composer install
- Install XAMPP with MySQL database or MySQL database
- Run
npm install
- Run
cp .env.example .env
- Run
php artisan key:generate
- Run
composer require spatie/laravel-permission
- Start XAMPP with MySQL database or MySQL database
- Run
php artisan migrate
- Run
php artisan migrate:fresh
- Run
php artisan migrate:fresh --seed
- Run
npm run build
- Install dependencies:
- Run web server:
- With XAMPP (cd code/` from ../xampp/htdocs)
- Or with laravel:
php artisan serve
(from anywhere)
- The application should now be available at http://127.0.0.1:8000
- Users:
- All pass:
- 123