Azuriom follows the PSR-12 coding style.
Laravel Pint is included in the Composer dev-dependencies, and can be used to automatically fix code style issues with this command:
./vendor/bin/pint
-
Clone the GitHub repository.
git clone https://github.com/Azuriom/Azuriom.git -
Copy the
.env.examplefile to.envand specify the database connection information. -
Set write/read permissions to the
storage/,bootstrap/cache/,resources/themes/andplugins/folders:chmod -R 755 storage bootstrap/cache resources/themes plugins -
Install the PHP dependencies with Composer:
composer install -
Install the front-end dependencies with NPM:
npm install && npm run dev -
Generate the secret key:
php artisan key:generate -
Setup the database:
php artisan migrate --seed -
Create the storage symlink
php artisan storage:link -
Create an admin account (Optional but recommended):
php artisan user:create --admin -
Configure your web server to point to the
public/folder (Optional but recommended). -
Setup the scheduler (Optional but recommended):
Some features need the scheduler to be set up, for this you need to configure your server to run the command
php artisan schedule:runevery minute, for example by adding this Cron entry (don't forget to replace/var/www/azuriomwith the location of the site):* * * * * cd /var/www/azuriom && php artisan schedule:run >> /dev/null 2>&1