Installation
Prerequisite
- PHP 8.2
To setup Pandora, first clone the project and change the directory.
git clone https://github.com/arifszn/pandora.git
cd pandora
Then follow the process using either Docker or Without Docker and you will have a fully running Laravel installation with Sanctum, all configured.
With Docker (Sail)
Laravel Sail is a light-weight command-line interface for interacting with Laravel's default Docker development environment.
Copy
.env.example
to.env
:cp .env.example .env
Install the dependencies:
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-reqsRun the containers:
./vendor/bin/sail up -d
Generate application key:
./vendor/bin/sail artisan key:generate
Run database migration with seeder:
./vendor/bin/sail artisan migrate --seed
To learn more about Sail, visit the Laravel website.
Without Docker
Copy
.env.example
to.env
:cp .env.example .env
Install the dependencies:
composer install
Generate application key:
php artisan key:generate
Run database migration with seeder:
php artisan migrate --seed
Start the local server:
php artisan serve