- Linux system
- Git installed
- Composer installed
- Docker installed (see https://docs.docker.com/engine/install/)
# Install PHP and PHP modules
apt-get install php7.4 php7.4-gd php7.4-curl php7.4-mbstring php7.4-xml php7.4-mysql php7.4-bcmath php7.4-apcu-bc composer
# Start database and redis
make start-db
make start-redis
git clone https://github.com/serieall/serieall.git
cd serieall
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate --seed
Check .env file to adjust to your configuration.
To launch the application, you can use :
php artisan serve
php artisan queue:work
The linter used is php-cs-fixer. You can integrate it with most code editors (check here). If you want to check the linting of the code you can run:
make lint
If you want PHP CS Fixer to fix everything for you, just run:
make lint-fix
You can run unit tests with this command:
make tests