Here you can find all information needed to istall and run the Caesar.Team server appliction on your own.
Feel free to visit our Homepage
- Docker and Docker Compose
- [MacOS Only]: Docker Sync (run
gem install docker-sync
to install it)
- PHP 7.4
- PostgreSQL 9
- RabbitMQ 3
- Redis 5
- Create a config file .env by .env.dist
cp .env.dist .env
- Fill required values by instruction inside .env
- Set DOMAIN_ADMIN_EMAIL this email used for registration domain admin
mkdir -p var/jwt
openssl genrsa -out var/jwt/private.pem -aes256 4096
openssl rsa -pubout -in var/jwt/private.pem -out var/jwt/public.pem
Update JWT_PASSPHRASE setting in .env file
On Linux/Windows:
docker-compose up -d
On MacOS:
docker-sync-stack start
docker-compose exec php composer install
docker-compose exec php bin/console doctrine:migrations:migrate
docker-compose exec php bin/console doctrine:fixtures:load
Create and promote super admin user:
docker-compose exec php bin/console app:user:create [email protected] [email protected] password --super-admin
Promote an existing user:
docker-compose exec php bin/console fos:user:promote --super username ROLE_ADMIN
Available roles:
- ROLE_ADMIN
- ROLE_READ_ONLY_USER
- ROLE_SUPER_ADMIN
Just go to http://localhost
Auth by admin and go to http://localhost/api/doc
Run migrations
docker-compose exec php bin/console doctrine:migrations:migrate --env=test
docker-compose exec php bin/codecept build
docker-compose exec php bin/codecept run unit
docker-compose exec php bin/codecept run api
docker-compose exec php vendor/bin/phpstan analyse
docker-compose exec php vendor/bin/psalm --show-info=false
Using php-cs-fixer
docker-compose exec php vendor/bin/php-cs-fixer fix