Skip to content

claravanstaden/commerce-from-za

Repository files navigation

Shop - Laravel E-commerce Application

A Laravel 11 e-commerce application with customer authentication and admin backend.

Features

  • Public Home Page: Browse products
  • Customer Authentication: Register, login, view order history
  • Admin Backend: Manage products and categories
  • Role-based Access: Admins have full backend access

Requirements

  • PHP 8.2+
  • Composer
  • Node.js & NPM

Installation

  1. Install PHP dependencies:

    cd shop
    composer install
  2. Generate application key:

    php artisan key:generate
  3. Run migrations and seed the database:

    php artisan migrate --seed
  4. Create storage link for uploaded images:

    php artisan storage:link
  5. Install Node dependencies and build assets:

    npm install
    npm run build
  6. Start the development server:

    php artisan serve
  7. Visit http://localhost:8000

Default Admin Credentials

Directory Structure

app/
├── Http/Controllers/
│   ├── HomeController.php       # Public product listing
│   ├── OrderController.php      # Customer order history
│   └── Admin/                   # Admin controllers
├── Models/                      # Eloquent models
└── Http/Middleware/
    └── AdminMiddleware.php      # Admin access control

resources/views/
├── home.blade.php               # Public home page
├── orders/                      # Customer order views
└── admin/                       # Admin panel views

Routes

Route Description
/ Home page with products
/login Customer login
/register Customer registration
/orders Customer order history
/admin Admin dashboard
/admin/products Manage products
/admin/categories Manage categories

Development

For development with hot reloading:

npm run dev

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages