* laravel framework upgrade from version 8 to 9
KamilCraftAPI
API for kamilcraft.com projects
Requirements
Required
- Docker 20.10.x (Engine) or later
Optional
- PHP 8.1.x or later
- Composer 2.4.x or later
- Nodejs 18.14.x or later
Preparation and installation
-
Copy the contents of the .env.example file into .env
cp .env.example .env
-
Build the image needed for Laravel and Node.js
docker-compose build --no-cache --pull
-
Run the images prepared in
docker-compose.yml
docker-compose up -d
-
Install the dependencies needed for Laravel and Nodejs
docker-compose exec -u "$(id -u):$(id -g)" php composer install
docker-compose run --rm -u "$(id -u):$(id -g)" npm install
-
Key and data generation
docker-compose exec -u "$(id -u):$(id -g)" php php artisan key:generate
docker-compose exec -u "$(id -u):$(id -g)" php php artisan migrate:fresh --seed
docker-compose run --rm -u "$(id -u):$(id -g)" npm run dev
-
Go to
http://localhost/dashboard
in your browser.
Languages
PHP
68%
Blade
31.1%
Dockerfile
0.9%