Skip to content

E-commerce project with Laravel 11, Vue 3 Typescript and Inertia.js

Notifications You must be signed in to change notification settings

fordiquez/laravel-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Logo

Build Status Total Downloads Latest Stable Version License

E-commerce project with Laravel 10, Vue 3 and Inertia.js

Must have requirements

  • Docker & Docker Compose.

Docker installation workflow

1. Clone this repository to your local folder

git clone git@github.com:fordiquez/laravel-store.git
cd laravel-store

2. Create .env

cp .env.example .env

3. Setup .env variables

3.1 Set up base url for your application

APP_URL=

3.2 Set up your database credentials

DB_CONNECTION=sqlite
#DB_HOST=mysql
#DB_PORT=3306
#DB_DATABASE=brandford
#DB_USERNAME=root
#DB_PASSWORD=root

3.3 Set up your cache & session driver, filesystem disk & queue connection

CACHE_DRIVER=database
FILESYSTEM_DISK=public
QUEUE_CONNECTION=database
SESSION_DRIVER=database

3.3 Set up mail SMTP options

MAIL_MAILER=
MAIL_HOST=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=
MAIL_FROM_ADDRESS=
MAIL_FROM_NAME=

3.4 Set up multiavatar API key

MULTIAVATAR_API_KEY=

3.5 Set up Countries States Cities API key

CSC_API_KEY=

3.7 Setup Stripe keys

STRIPE_KEY=
STRIPE_SECRET=
STRIPE_WEBHOOK_SECRET=

4. Install all composer & npm dependencies

composer install
npm install

5. Docker settings

docker-compose up --build -d
docker exec -it store-laravel php artisan horizon
docker exec -it store-laravel /bin/bash

6. Run artisan commands

php artisan key:generate
php artisan storage:link
php artisan migrate:fresh --seed
php artisan shield:install --fresh
php artisan db:seed --class=RoleSeeder
php artisan optimize:clear

7. Run dev server

npm run dev

8. Run stripe webhook

stripe login
stripe listen --forward-to laravel-store.test/stripe/webhook

9. Edit hosts file

Path for Windows:

C:\Windows\System32\drivers\etc

Add your application domain:

127.0.0.1       laravel-store.test