Skip to content

Emmo00/blog-app

Repository files navigation

Blog App

This is a simple Laravel project setup guide. Follow the steps below to get your Laravel application up and running.

Prerequisites

Before you begin, ensure you have the following installed on your machine:

Installation

Step 1: Clone the Repository

git clone https://github.com/emmo00/blog-app.git
cd blog-app

Step 2: Install Dependencies

Install PHP dependencies using Composer:

composer install

Step 3: Configure Environment Variables

Copy the .env.example file to .env:

cp .env.example .env

Generate an application key:

php artisan key:generate

Step 4: Configure Database

Open the .env file and update the following lines with your database configuration:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_password

Configure Cloudinary

Open the .env file and add your cloudinary url

CLOUDINARY_URL=cloudinary://724979928357437:<your_api_secret>@drcwe987o

Step 5: Run Migrations

Run the database migrations to create the necessary tables:

php artisan migrate

Step 6: Seed the Database (Optional)

If you want to seed the database, run:

php artisan db:seed

Step 7: Serve the Application

Start the Laravel development server:

php artisan serve

By default, the application will be accessible at http://127.0.0.1:8000.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

If you wish to contribute, please fork the repository and submit a pull request.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Languages