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/
Skip the prereqs! After step 1 run docker compose up --build
and visit http://localhost:9000.
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)
-
Clone the repository:
git clone https://github.com/caseydwayne/dwc-e-store-demo cd dwc-e-store-demo
-
Install dependencies:
composer install npm install && npm run dev
-
Copy the environment file:
cp .env.example .env
(Windows without PowerShell:
copy .env.example .env
) -
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!
-
Run database migrations & seeders:
php artisan migrate --seed
-
Serve the application:
php artisan serve
Visit http://127.0.0.1:8000
to access the application.