API for kamilcraft.com projects
- Docker 20.10.x (Engine) or later
- PHP 8.1.x or later
- Composer 2.4.x or later
- Nodejs 18.14.x or later
-
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.