Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hotwired-laravel/turbo-laravel.com
https://github.com/hotwired-laravel/turbo-laravel.com
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hotwired-laravel/turbo-laravel.com
- Owner: hotwired-laravel
- License: mit
- Created: 2022-09-18T01:04:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-21T03:26:08.000Z (8 months ago)
- Last Synced: 2024-05-21T04:34:19.329Z (8 months ago)
- Language: PHP
- Homepage: https://turbo-laravel.com
- Size: 19.2 MB
- Stars: 0
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Turbo Laravel Website
Source code of the [Turbo Laravel website](https://turbo-laravel.com).
## Local Development
If you want to work on this project locally, you may follow these instructions:
1. Checkout the source code:
```bash
git clone [email protected]:hotwired/turbo-laravel.com turbo-laravel.com
```2. Copy the `.env.example` to `.env`:
```bash
cp .env.example .env
```3. We ship with a Laravel Sail setup, so you may pull the composer dependencies first:
```bash
# 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
```4. Pull all docs sources and create the docs symlinks:
From your local machine (needs access your GitHub user to clone):
```bash
source ./bin/docs-pull.sh
```Next, create the symlinks from sail:
```bash
# First, get a shell:
sail shell
# Next, create the symlinks:
source bin/docs-symlinks.sh
```5. Boot the containers:
```bash
sail up -d
```6. Download the Latest version of the TailwindCSS bin and start a watcher:
```bash
sail artisan tailwindcss:download
sail artisan tailwindcss:watch
```7. Run the storage symlink command (needed for [Importmap Laravel](https://github.com/tonysm/importmap-laravel)):
```bash
sail artisan storage:link
```8. Open the browser at [http://localhost](http://localhost)
Alternatively, you may prefer to run the project another way. Make sure you
### Torchlight Integration
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:
```dotenv
TORCHLIGHT_TOKEN=your-token
```