- Laravel (PHP)
- Jetstream
- Vue 3 with InertiaJS
- MySQL
- Docker
- Install WSL2 via
wsl --install
on Command Prompt - Install Docker
- Create
.env
file by referencing the configuration below - Configure Windows Console Host to use Ubuntu terminal
- Navigate to root folder and Run in WSL (e.g. Ubuntu) terminal
docker run --rm \ -u "$(id -u):$(id -g)" \ -v "$(pwd):/var/www/html" \ -w /var/www/html \ laravelsail/php82-composer:latest \ composer install --ignore-platform-reqs
- Navigate to root folder and run
./vendor/bin/sail up -d
- Run
./vendor/bin/sail artisan migrate:fresh
- Run
./vendor/bin/sail npm i
- Run
./vendor/bin/sail npm run build
- Run
./vendor/bin/sail npm run dev
if you need hot reloading while editing code
- Update .htaccess file
<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On # Redirect Trailing Slashes... RewriteRule ^(.*)/$ /$1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>
- Install nvm and npm
wget -qO- https://cdn.rawgit.com/creationix/nvm/master/install.sh | bash nvm install stable
- Install composer
Instructions from https://getcomposer.org/download/
FAQ (Hostinger) https://support.hostinger.com/en/articles/5792082-how-to-solve-the-most-common-composer-issues - Run command
npm install
- Run command
npm run build
- Run command
./composer.phar self-update
- Run command
./composer.phar install --optimize-autoloader --no-dev
- Shift
public_html/domain/public/build/assets
folder topublic_html/domain/build
folder of the domainKeep
assets/manifest.json
in thepublic_html/domain/public/build/assets
folder - Setup
.env
file - Run
php artisan migrate
APP_NAME=Laravel APP_ENV=local APP_KEY=base64:H55v8lpuXJsY3YOaFdGKIQwhpaBdlmqdATaH7JjmDOk= APP_DEBUG=true APP_URL=http://localhost LOG_CHANNEL=stack LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug DB_CONNECTION=mysql DB_HOST=mysql DB_PORT=3306 DB_DATABASE=compos DB_USERNAME=sail DB_PASSWORD=password BROADCAST_DRIVER=log CACHE_DRIVER=file FILESYSTEM_DISK=local QUEUE_CONNECTION=sync SESSION_DRIVER=database SESSION_LIFETIME=120 MEMCACHED_HOST=127.0.0.1 REDIS_HOST=redis REDIS_PASSWORD=null REDIS_PORT=6379 MAIL_MAILER=smtp MAIL_HOST=mailpit MAIL_PORT=1025 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null MAIL_FROM_ADDRESS="[email protected]" MAIL_FROM_NAME="${APP_NAME}" AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_DEFAULT_REGION=us-east-1 AWS_BUCKET= AWS_USE_PATH_STYLE_ENDPOINT=false PUSHER_APP_ID= PUSHER_APP_KEY= PUSHER_APP_SECRET= PUSHER_HOST= PUSHER_PORT=443 PUSHER_SCHEME=https PUSHER_APP_CLUSTER=mt1 VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}" VITE_PUSHER_HOST="${PUSHER_HOST}" VITE_PUSHER_PORT="${PUSHER_PORT}" VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" SCOUT_DRIVER=meilisearch MEILISEARCH_HOST=http://meilisearch:7700