Skip to content

cyantiz/pomme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

What is this?

An e-commerce website that sells shoes, called Pomme.

What are we using?

Vue 3 w/ Pinia + Laravel, deploy on DigitalOcean.

image

Further information:

๐Ÿ‘‰ Entity Relationship Diagram

TLDR

# 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

Installation

$ cd web && yarn install # client
$ cd api-laravel && composer install # api

Running the app

# development
$ cd web && yarn dev # client
$ cd api-laravel && php artisan serve --port=8000 # api

Lint

$ cd web && yarn lint # web
$ cd api-laravel && vendor/bin/phpcs # api

Format code

$ cd web && yarn format # web
$ cd api-laravel && vendor/bin/phpcbf # api

Environment variables

# 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

Databases

Use MySQL MySQL for our database connection.

# Migrate and seed data
cd api-laravel && php artisan migrate:fresh --seed

License: MIT licensed.