- PHP 8.2
- MySQL 8.0
- Nginx
- Node.js 19.^
- Clone repository locally;
- Run
composer install
to install Composer dependencies; - Run
cp .env.example .env
to create your local environment file; - In .env file change SMTP config to correct email and APP_LINK to server domain.
- Run
php artisan migrate --seed
to migrate database and seed it - Create new directory
mkdir storage/app/image
- Create new directory
mkdir storage/app/image/cropped
- Run
php artisan storage:link
to creates a symlink - Run
npm install
to install NPM dependencies; - Run
npm run build
to build/compile frontend assets; - Run
php artisan key:gen
to generate ne application key - Run command
/usr/local/bin/php /mentors/project/directory/artisan schedule:run >> /dev/null 2>&1
to run scheduled tasks every minute (Check if there is queued emails)