https://github.com/mariannehartigan/B...
composer create-project laravel/laravel:^11.0 --ignore-platform-reqs project-name
CD INTO project-name
npm install --save-dev @vitejs/plugin-vue@5
composer require inertiajs/inertia-laravel:^2.0 --ignore-platform-reqs
npm install @inertiajs/vue3@^2.3.18
npm install -D [email protected] postcss autoprefixer
Copy the address from GitHub
git clone https://github.com/mariannehartigan/B...
Cut everything from folder with cloned files into project folder, choose replace files
Delete folder with cloned files
Make sure Docker running, but nothing started (on the port you need)
docker compose up
check Docker, make sure running
Go to http://localhost:8080/
Server is mysql
Username is root
Password is root (specified in docker-compose.yaml MYSQL_ROOT_PASSWORD: root)
click Create Database, give it a name and choose utf8mb4_general_ci
.env:
projectname\.env:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=database-name
DB_USERNAME=root
DB_PASSWORD=root
php artisan serve
npm run dev
php artisan migrate --seed
Open http://127.0.0.1:8000
When you reboot the PC:
php artisan serve
npm run dev
open Docker
Open:
http://127.0.0.1:8000/
http://localhost:8080/?server=mysql&username=root