Source code of the Turbo Laravel website.
If you want to work on this project locally, you may follow these instructions:
- Checkout the source code:
git clone [email protected]:hotwired/turbo-laravel.com turbo-laravel.com
- Copy the
.env.example
to.env
:
cp .env.example .env
- We ship with a Laravel Sail setup, so you may pull the composer dependencies first:
# If you have PHP >=8.1 installed locally with Composer:
composer install
# If you don't have PHP installed, but have Docker:
docker run --rm \
-u "$(id -u):$(id -g)" \
-v $(pwd):/var/www/html \
-w /var/www/html \
laravelsail/php81-composer:latest \
composer install --ignore-platform-reqs
- Pull all docs sources and create the docs symlinks:
From your local machine (needs access your GitHub user to clone):
source ./bin/docs-pull.sh
Next, create the symlinks from sail:
# First, get a shell:
sail shell
# Next, create the symlinks:
source bin/docs-symlinks.sh
- Boot the containers:
sail up -d
- Download the Latest version of the TailwindCSS bin and start a watcher:
sail artisan tailwindcss:download
sail artisan tailwindcss:watch
- Run the storage symlink command (needed for Importmap Laravel):
sail artisan storage:link
- Open the browser at http://localhost
Alternatively, you may prefer to run the project another way. Make sure you
We're using Torchlight for code highlight, so head out to their website, create an account, generate a token and update the TORCHLIGHT_TOKEN
entry on your .env
file with it:
TORCHLIGHT_TOKEN=your-token