Skip to content

Latest commit

 

History

History
98 lines (63 loc) · 2.66 KB

README.md

File metadata and controls

98 lines (63 loc) · 2.66 KB

Laravel Logo

Build Status Total Downloads Latest Stable Version License

License

The Laravel framework is open-sourced software licensed under the MIT license.

LaraBlogger

Installation

Follow these steps to set up the project on your local machine.

Step 1: Clone the Repository

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

Step 2: Install Dependencies

Use Composer to install the PHP dependencies required for the project:

composer install

Step 3: Create a Database

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.

Step 4: Configure the .env File

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

Step 5: Generate Application Key

Generate an application key to secure user sessions and encrypted data:

php artisan key:generate

Step 6: Run Migrations and Seeders

Now, run the database migrations and seeders:

php artisan migrate --seed

Step 7: Start the Server

Finally, start the Laravel development server:

php artisan serve

Now, you can visit http://localhost:8000 in your web browser to access the application.