Last active
July 8, 2024 10:39
-
-
Save chris-cmsoft/1e1b21959a71eb879f23051dfa206d20 to your computer and use it in GitHub Desktop.
TLDR - Laravel In Kubernetes Part 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export APP_PORT=8080 | |
# Create a directory to store application | |
mkdir -p laravel-in-kubernetes-tutorial | |
cd laravel-in-kubernetes-tutorial | |
# Create Laravel application | |
curl -s "https://laravel.build/laravel-in-kubernetes?with=mysql,redis" | bash | |
cd laravel-in-kubernetes | |
# Commit changes to git | |
git init | |
git add . | |
git commit -m "Initial Laravel Install" | |
# Run Laravel application using Laravel Sail | |
./vendor/bin/sail up | |
# Install authentication scaffolding | |
./vendor/bin/sail composer require laravel/breeze --dev | |
./vendor/bin/sail php artisan breeze:install | |
./vendor/bin/sail npm install | |
./vendor/bin/sail npm run dev | |
./vendor/bin/sail php artisan migrate | |
# You'll be able to access the application at http://localhost:8080/ | |
# Commit changes to git | |
git add . | |
git commit -m "Add breeze authentication" | |
# Run test suite to confirm application is working correctly | |
./vendor/bin/sail artisan test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can follow the full tutorial over at https://chris-vermeulen.com/laravel-in-kubernetes-part-1/
The above script will install a new Laravel application with authentication using Laravel Sail.