REST API service for Maps Saver App
Built with Symfony Framework v4.4
API Documentation https://maps-saver-symfony.herokuapp.com/api/doc
API doc config for Postman is available on https://maps-saver-symfony.herokuapp.com/api/doc.json
$ composer install
// build and run php, webserver, db, phpmyadmin containers in background
$ docker-compose up -d
// log into php container to be able to run Symfony CLI
$ docker exec -it symfony_app bash
$ composer install
// create new jwt directory in config
$ mkdir -p config/jwt
// it will require jwt passphrase,
// just copy key value of JWT_PASSPHRASE from .env or .env.local file
$ openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096
// will also require same JWT_PASSPHRASE, must match from above!
$ openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout
For more info, visit LexikJWTAuthenticationBundle Documentation
$ php bin/console doctrine:migrations:migrate
$ php bin/console doctrine:fixtures:load
First copy phpunit.xml config
$ cp phpunit.xml.dist phpunit.xml
$ php bin/phpunit