This project was generated with Symfony version 6.1.
Run composer install
for install the dependencies and framework bundles.
Open .env
and update your credential in below line.
Run Below command for migration and load default user into database.
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate
php bin/console doctrine:fixtures:load
It will create one dummy user in the database with below email and password.
Password | |
---|---|
[email protected] | Admin@123 |
it will generate in config\jwt\private.pem
and config\jwt\public.pem
.
While generating the private, you will be asked for a passphrase. Enter a strong passphrase and note it somewhere as we will need it later to update the configuration. As an example, we’ll use ThisIsThePassPhrase as our passphrase
openssl genrsa -out config/jwt/private.pem -aes256 4096
openssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem
Open .env
file and configure passphrase to JWT_PASSPHRASE=ThisIsThePassPhrase
parameter.
Get api document.
GET /api/doc
Enjoy