- Edit build/.env - change PROJECT_NAME and MYSQL_DATABASE (optional)
- Check build/docker-compose.yml - be sure that port for each container is not used in your system
- Go to build and run docker-compose up -d
- Run
docker exec -ti api_php bash
or if you changed project name:docker exec -ti your_container_name bash
- Run
composer install
. - Generate the SSH keys for LexikJWTAuthenticationBundle:
$ mkdir -p var/jwt # For Symfony3+, no need of the -p option
$ openssl genrsa -out var/jwt/private.pem -aes256 4096
$ openssl rsa -pubout -in var/jwt/private.pem -out var/jwt/public.pem
And update this: jwt_key_pass_phrase
in parameters.yml - set pass phrase you type a few seconds ago
php bin/console doctrine:database:create
php bin/console doctrine:database:create --env=acceptance
php bin/console doctrine:schema:update --force
php bin/console doctrine:schema:update --force --env=acceptance
Optionally you can run:
php bin/console fos:user:create
and php bin/console fos:user:create -e=acceptance
for creating uer for both database
php vendor/bin/behat