- Run
composer install
to install all dependencies - Create database with
php bin/console doctrine:database:create
command - Create database structure with
php bin/console doctrine:migrations:migrate
command - Load test data to database
php bin/console doctrine:fixtures:load
- Create test user with symfony command
php bin/console app:create-user --username="user" --email="test@mail.com" --roles="USER_ROLE"
- Then you can log in to API with POST /login method with data generated by command. Request body example:
{"username": "user", "password": "generated password"}
- Now you can access API method's by REST client. For example:
/api/leagues
method
- To run unit tests use
php bin/phpunit
command