Quick start for Symfony backend project with JWT authentication
- Docker
- Php 8.2
- Symfony
- jwt-refresh-token-bundle
- jwt-authentication-bundle
- nelmio api-doc-bundle
- doctrine fixtures
- MariaDB
docker compose up --build
./bin/console doctrine:migrations:migrate
./bin/console doctrine:fixtures:load
./bin/console app:create-user userEmail userPassword
curl -X POST -H "Content-Type: application/json" http://localhost:8222/api/login_check -d '{"username":"userEmail","password":"userPassword"}'
add :
Authorization: Bearer {jwtToken}
on header request