This guide will walk you through the process of cloning a Laravel project from GitHub and setting it up to run on your local machine.
Before you begin, ensure you have the following installed on your system:
- PHP (>= 8.3.9)
- Composer
- Git
- Node.js and npm (for front-end assets)
-
Clone the repository
Open your terminal and run the following command:
git clone https://github.com/DNNYF/rs.git -
Navigate to the project directory
cd ./rs/ -
Install PHP dependencies
composer install -
Create environment file
cp .env.example .envUpdate the
.envfile with your local environment settings (database credentials, app settings, etc.). -
Generate application key
php artisan key:generate -
Run database migrations
If the project uses a database, run migrations:
php artisan migrateIf you want to seed the database with sample data (if available):
php artisan db:seed -
Create storage link
php artisan storage:linkThis creates a symbolic link from
public/storagetostorage/app/public, allowing public access to files in the storage folder. -
Install front-end dependencies
npm install -
Compile assets
npm run devFor production:
npm run build -
Start the development server
php artisan serveYour Laravel application will be available at
http://localhost:8000.
If you encounter any issues, try the following:
- Clear configuration cache:
php artisan config:clear - Clear application cache:
php artisan cache:clear - If you have permission issues, run:
chmod -R 777 storage bootstrap/cache
This project is open-sourced software licensed under the MIT license.