This is a simple Laravel project setup guide. Follow the steps below to get your Laravel application up and running.
Before you begin, ensure you have the following installed on your machine:
- PHP (version 7.4 or later)
- Composer
- Node.js and npm (for frontend dependencies)
- MySQL or another supported database
git clone https://github.com/emmo00/blog-app.git
cd blog-app
Install PHP dependencies using Composer:
composer install
Copy the .env.example
file to .env
:
cp .env.example .env
Generate an application key:
php artisan key:generate
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
Open the .env
file and add your cloudinary url
CLOUDINARY_URL=cloudinary://724979928357437:<your_api_secret>@drcwe987o
Run the database migrations to create the necessary tables:
php artisan migrate
If you want to seed the database, run:
php artisan db:seed
Start the Laravel development server:
php artisan serve
By default, the application will be accessible at http://127.0.0.1:8000
.
This project is licensed under the MIT License. See the LICENSE file for details.
If you wish to contribute, please fork the repository and submit a pull request.