Build a Powerful Ecommerce Admin Dashboard with Laravel

If you want to set up the Build a Powerful Ecommerce Admin Dashboard with Laravel on your local machine, follow this simple step-by-step guide. This tutorial will help you quickly clone the project, install dependencies, configure the environment, and run it successfully.

Project Repository

GitHub URL:
https://github.com/StarCodeKh/Ecommer-Template-Laravel

Prerequisites

Before starting, make sure you have the following installed on your system:

  • PHP 8.2+

  • Composer (PHP dependency manager)

  • MySQL or MariaDB

  • Git

You can verify your versions using:

php -v composer -V git --version

Step 1 – Clone the Repository

Open your terminal and navigate to the folder where you want to install the project, then run:

git clone https://github.com/StarCodeKh/Ecommer-Template-Laravel.git

Step 2 – Create Environment File

Copy the example environment configuration file:

cp .env.example .env

Then open the .env file in your code editor and set up your database credentials and app URL:

APP_NAME="Laravel Admin" APP_URL=http://127.0.0.1:8000 DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=your_database_name DB_USERNAME=your_username DB_PASSWORD=your_password

Step 3 – Generate Application Key

Laravel requires a unique application key. Generate it using:

php artisan key:generate

This will automatically update the APP_KEY value in your .env file.

Step 4 – Run Database Migrations

Next, create your database tables using Laravel migrations:

php artisan migrate

Step 5 – Set Folder Permissions (Linux/macOS)

Make sure Laravel can write to the necessary directories:

chmod -R 775 storage bootstrap/cache

Step 6 – Start the Development Server

Run the built-in Laravel development server:

php artisan serve

Your project will be available at:
👉 http://127.0.0.1:8000

🎉 Done!

You’ve successfully cloned and set up the E-commerce Admin Dashboard with Laravel on your local machine!
You can now explore, customize, and build powerful admin panels using this clean and responsive UI.

Souy Soeng

Souy Soeng

Hi there 👋, I’m Soeng Souy (StarCode Kh)
-------------------------------------------
🌱 I’m currently creating a sample Laravel and React Vue Livewire
👯 I’m looking to collaborate on open-source PHP & JavaScript projects
💬 Ask me about Laravel, MySQL, or Flutter
⚡ Fun fact: I love turning ☕️ into code!

Post a Comment

close