Azuriom follows the PSR-12 coding style.
You can also run PHP-CS-Fixer to automatically fix the code style.
-
Clone the GitHub repository.
git clone https://github.com/Azuriom/Azuriom.git
-
Copy the
.env.example
file to.env
and 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:run
every minute, for example by adding this Cron entry (don't forget to replace/var/www/azuriom
with the location of the site):* * * * * cd /var/www/azuriom && php artisan schedule:run >> /dev/null 2>&1