-
Clone repository
-
In project folder, executes
composer install
-
In .env (or .env.local), configure your database access
-
Executes these 2 commands
$ openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096
$ openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout
-
Now, you have to copy the choosen passphrase in .env, or.env.local like this:
JWT_PASSPHRASE="YOUR_PASSPHRASE"
-
Create and fill database with:
php bin/console doctrine:database:create
php bin/console doctrine:schema:update --force
php bin/console doctrine:fixtures:load
-
Run tests:
php bin/phpunit
-
To access admin panel, go to: /manager
email: "[email protected]" pass: "demodemo"
Don't forget to build the assets:
yarn install
,yarn encore production
-
To test API as a client:
username: "[email protected]" pass: "demodemo"
Api documentation is generated on : /api/doc