Prerequisites:
- Make sure PHP is installed on your system
- Make sure Node/NPM (and optionally Yarn) is installed on your system
- Make sure PHP Composer is installed and available globally
Installation
- Clone repository to a directory of your choice
- In Terminal run
composer install
to install needed composer packages - Run
npm install
oryarn install
to install the needed javascript packages - Create a copy of the
.env.example
file and rename it to.env
- Run
php artisan key:generate
to generate a random project key - Create an empty MySQL database
- In the
.env
file fill in theDB_HOST
,DB_PORT
,DB_DATABASE
,DB_USERNAME
, andDB_PASSWORD
options to match the credentials of the database you just created - Run
php artisan migrate
to automatically create all tables used in the project to your database
Use npm run watch-poll
or yarn run watch-poll
to run live reloading of changed files.
Run npm run dev
or yarn run dev
for compiling assets for development.
Run npm run prod
or yarn run dev
for compiling assets for production.