The Laravel framework is open-sourced software licensed under the MIT license.
Follow these steps to set up the project on your local machine.
First, clone the project from the GitHub repository to your local machine. Open your terminal and use the following commands:
git clone [email protected]:ismaildasci/LaraBlogger.git blog
cd blog
Use Composer to install the PHP dependencies required for the project:
composer install
Create a MySQL database for use in the project. You can do this by logging into MySQL from the command line:
mysql -u username -p
Create a new database using the following SQL command in the MySQL shell:
CREATE DATABASE blog;
Then, use the EXIT; command to exit the MySQL shell.
You need to configure the .env file with the database connection details. In the root directory of the project, copy the .env.example file as .env and make the necessary configurations:
cp .env.example .env
Open the .env file and configure the database settings:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=blog
DB_USERNAME=your_username
DB_PASSWORD=your_password
Generate an application key to secure user sessions and encrypted data:
php artisan key:generate
Now, run the database migrations and seeders:
php artisan migrate --seed
Finally, start the Laravel development server:
php artisan serve
Now, you can visit http://localhost:8000 in your web browser to access the application.