to install the application's dependencies run the following command:
docker run --rm \
-u "$(id -u):$(id -g)" \
-v $(pwd):/var/www/html \
-w /var/www/html \
laravelsail/php80-composer:latest \
composer install --ignore-platform-reqsadd .env file by copying .env.example
cp .env.example .envNB: do not forget to add value to MAGESTIC_API_KEY key in your .env file.
Keys APP_PORT and FORWARD_REDIS_PORT can be added to adjust app ports
to run docker execute next command in a root directory:
./vendor/bin/sail upto ensure that all containers are running:
docker psto enter one of containers
docker exec -it api-challenge_laravel.test_1 /bin/bashInstall dependencies
npm installWatch mode
npm run watchProduction mode
npm run prodTo update website data run the following console command :
php artisan website_data:update