First you need to install Composer and Node.JS and NPM. Then install PHP mbstring and PHP xml (sudo apt install php-mbstring php-xml
) and update the dependencies for both PHP and JS:
composer install
npm install
cp .env.example .env
php artisan key:generate
To start development, you need to run php artisan serve
. It will output the link that leads to your website. You should also run npm run watch
to dynamically rebuild changes you make to the Vue app. Both commands will attach to the shell you run them in. If you don't want to sustain multiple shells, use nohup or a similar tool:
nohup npm run watch </dev/null &>/dev/null &
nohup php artisan serve &
This creates a nohup.out
file. The output from npm run watch
usually is not important and will be ommited, but you will find the IP and logs from php artisan serve
in this file.