A Symfony project created on December 01, 2019, 12:37 pm.
git clone https://franbueno@bitbucket.org/franbueno/leadquizzes-backend.git
cd leadquizzes-backend
composer install
docker-compose up -d
docker-compose down
(Only if you want to stop containers and removes containers, networks, volumes, and images created by up
)
See docker-compose.yml for information. You can configure connection parameters in /config/parameters.yml
Then, access it via http://localhost:8080 or http://host-ip:8080 and login with user:root
, password:root
and db: leadquizzes
ATTENTION PLEASE, takes a few seconds to mount MySQL and adminer so please wait until move to next step
php bin/console doctrine:schema:update --force
php bin/console doctrine:fixtures:load
It will generate some quizzes and user profile, required to login with user:admin
and password:password
mkdir -p config/jwt
openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096
(Use phrase quiz
so you won't need to edit `paramenters.yml)
openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout
We used LexikJWTAuthenticationBundle to provide JWT (Json Web Token) authentication for this Symfony API so we need to generate SSH keys.
php bin/console server:run
Awesome, you can jump to Leadquizzes Angular SPA. Enjoy! 🚀