Skip to content

caseydwayne/dwc-e-store-demo

Repository files navigation

Laravel E-Store

This is a simple e-store to demonstrate my ability to use Laravel. Though I prefer Node based systems I have a long history with PHP and am no stranger to MVC frameworks.

Live preview: https://temp.caseydwayne.com/dwc-e-store-demo/public/

Store Preview

Use Docker?

Docker Logo

Skip the prereqs! After step 1 run docker compose up --build and visit http://localhost:9000.

Installation Guide

Prerequisites

Ensure your system has the following installed:

  • PHP 8.x
  • Composer
  • Laravel 10.x
  • SQLite (make sure it's enabled in your php.ini)
  • Node.js & NPM (for frontend assets)

Setup Steps

  1. Clone the repository:

    git clone https://github.com/caseydwayne/dwc-e-store-demo
    cd dwc-e-store-demo
  2. Install dependencies:

    composer install
    npm install && npm run dev
  3. Copy the environment file:

    cp .env.example .env

    (Windows without PowerShell: copy .env.example .env)

  4. Generate an application key, configure .env, add media (optional):

    You can set your own key with php artisan key:generate before seeding the database. For the purposes of this demo I didn't feel it was necessary (and left the encryption key in .env.example). The local version uses SQLite, production is MySQL - use whatever you feel is comfortable.

    The media can be downloaded here, just extract and place in /public/storage (or symlink wherever - I removed the symlink from config/filesystems to avoid conflict between Windows and Docker/Linux).

    Honestly the code is in the repo, the live preview is active, and Docker build is available - I'd be surprised if you're reading this!

  5. Run database migrations & seeders:

    php artisan migrate --seed
  6. Serve the application:

    php artisan serve

Visit http://127.0.0.1:8000 to access the application.

About

A simple e-store to demonstrate my ability to use Laravel (along with TailwindCSS, JS, Vite, Docker, etc.)

Topics

Resources

Stars

Watchers

Forks