An e-commerce website that sells shoes, called Pomme.
Vue 3 w/ Pinia + Laravel, deploy on DigitalOcean.
# Start developing
docker compose up db web --build -d
docker compose up api --build -d
# API at port 8000
# Web at port 5173
# MySQL DB at port 3306
# Finish developing
docker compose down # kill all container
$ cd web && yarn install # client
$ cd api-laravel && composer install # api
# development
$ cd web && yarn dev # client
$ cd api-laravel && php artisan serve --port=8000 # api
$ cd web && yarn lint # web
$ cd api-laravel && vendor/bin/phpcs # api
$ cd web && yarn format # web
$ cd api-laravel && vendor/bin/phpcbf # api
# WEB .env file
VITE_API_URL=http://localhost:8000/api
VITE_CLOUDINARY_NAME=<cloud_name>
VITE_CLOUDINARY_PRESET=<cloud_preset>
# API .env file
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=172.17.0.1
DB_PORT=3306
DB_DATABASE=pomme
DB_USERNAME=root
DB_PASSWORD=password123
BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DRIVER=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
JWT_SECRET=lmaolmao
SENTRY_LARAVEL_DSN=
SENTRY_TRACES_SAMPLE_RATE=1.0
SENTRY_ENVIRONMENT=development
Use MySQL MySQL for our database connection.
# Migrate and seed data
cd api-laravel && php artisan migrate:fresh --seed
License: MIT licensed.