PHP 7.4 or higher with Composer installed.
Database server (MySQL preferred) with a new database.
-
Copy
app/config/local.neon.dist
toapp/config/local.neon
and change it according to your environment. -
Make directories
temp/
andlog/
writable for the web server. -
Install PHP dependencies using composer:
composer install
For PHP configuration options, see https://doc.nette.org/cs/3.0/configuring.
-
List console commands:
bin/console
-
Generate a migration by comparing your current database to your mapping information:
bin/console migrations:diff
-
Execute migrations to the latest available version:
bin/console migrations:migrate
-
Check code style:
composer check-cs
-
Fix code style:
composer fix-cs
-
Run PHPStan:
composer phpstan
-
Run tests:
composer test
-
Run tests on Ubuntu:
composer test -- -c tests/php-ubuntu.ini