php: "^8.1.8"
composer: "^2.2.4"
npm: "^14.15.4|^16.13.0"
node: "^14.18.0"
composer install
composer update
npm install
npm run dev
git config --global core.autocrlf false
Up docker containers with:
docker-compose up -d
Down docker containers with:
docker-compose down
[+] Running 6/6
⠿ Network serviceapp_laravel-php-nginx
⠿ Volume "serviceapp_sailpgsql" Started
⠿ Container redis Started
⠿ Container pgsql Started
⠿ Container mailhog Started
⠿ Container laravel_sail Started
Check your docker id with:
docker ps
Enter into your docker container command line interface of (vibspecdb-laravel.test-1
|| vibspecdb-backend-1
) with:
docker exec -it **idcontainerahere** bash
Inside this docker container run migration and initial configuration:
php artisan migrate:fresh
npm run dev
npm install husky --save-dev
npx husky install
npm set-script prepare "husky install"
npx husky add .husky/pre-commit "npm test"
chmod +x ./.husky/pre-*
php artisan key:generate
php artisan optimize
php artisan config:clear
php artisan route:clear
This set of commands should fix most of init problems.
Make sure that commands npm i
and composer install
are done.
npm i
npm run lerna
After these commands you may run to have online changes in browser:
npm run hot
You can develop shared vue modules, and push changes to your git sub-modules.
- created folder
/resourses/js/pakages
- git repo with
serviceappvuecomponents
cloned - this repo was added as git submodule to the laravel repo
lerna.json
config file addedpackage.json
new npm command added