This project is the website for LN Prints.
1.0 Installation
1.1 Environment
1.2 Composer dependencies
1.3 Setup Sail
1.4 Migrate database
1.5 Media
1.5.1 Mac OS
1.5.2 Sail
2.0 Laravel Nova
3.0 Laravel Telescope
4.0 Laravel Horizon
5.0 Tests
Follow the steps below to initialize the project.
- Create an .env file adjusted to your needs (take .env.example as example)
- Install composer dependencies with
composer install
.
- Install Sail with
sail build --no-cache
. - Run
sail up -d
to bring up the docker containers. - Run the command
sail artisan storage:link
to link the storage folder to the public folder.
- Migrate the database by running the
sail artisan migrate
command in the terminal.
Because we use spatie media library and video uploads you must install FFmpeg to generate images from the uploaded video.
Execute the following command in the terminal.
brew install ffmpeg
Add the following variables to your environment.
FFMPEG_PATH="/usr/local/bin/ffmpeg"
FFPROBE_PATH="/usr/local/bin/ffprobe"
Execute the following command in the terminal.
sail shell
sudo apt update
sudo apt install ffmpeg
Add the following variables to your environment.
FFMPEG_PATH="/usr/bin/ffmpeg"
FFPROBE_PATH="/usr/bin/ffprobe"
This project uses Laravel Nova for managing resources. Navigate to /admin
to enter the Laravel Nova panel.
NOTE: The path can be configured in the .env file with
NOVA_PATH=
This project uses Laravel Telescope for debugging purposes. Navigate to /telescope
to enter the Laravel Telescope
panel.
NOTE: The path can be configured in the .env file with
TELESCOPE_PATH=
NOTE: Telescope should be disabled on production to increase performance by configuring
TELESCOPE_ENABLED=false
in the .env file
This project uses Laravel Horizon to manage queues. Navigate to /horizon
to enter the Laravel Horizon panel.
NOTE: The path can be configured in the .env file with
HORIZON_PATH=
NOTE: Laravel Horizon uses redis so make sure you've configured redis in
config/queue.php
!
This project includes some tests, execute the following command in the terminal to start them:
php artisan test