Follow these steps to set up and run the Blog_Projet application on your local machine:
-
Clone the repository and navigate to the project directory:
git clone https://github.com/DevZakariaAz/Blog_Projet.git cd Blog_Projet -
Go to the
appdirectory:cd app
-
Install PHP dependencies using Composer:
composer install
-
Set up the environment configuration:
cp .env.example .env
-
Generate the application key:
php artisan key:generate
- Installer package via composer
composer require spatie/laravel-permission
-
Run the database migrations:
php artisan migrate
-
Seed the database with initial data (if required):
php artisan db:seed
-
Install Node.js dependencies:
npm install
-
Build the frontend assets:
npm run build
-
(Optional) Start the development server for live updates:
npm run dev
-
Serve the application:
php artisan serve
- login : admin@gmail.com
- password : admin
Your application should now be running! Open your browser and navigate to the local development server URL provided in the terminal (usually http://127.0.0.1:8000).