A full-featured Symfony playground with authentication, role management, and frontend integration.
| Service | URL | Description |
|---|---|---|
| Frontend | https://localhost:3000 | React frontend (client app) |
| Symfony API | https://localhost:9443/api | Main backend API |
| Swagger Docs | https://localhost:9443/api/docs | OpenAPI documentation for the Symfony API |
| Keycloak Admin Console | https://localhost:8443 | Identity and access management (SSO, roles, users) |
Important:
This playground uses a self-signed SSL certificate for all HTTPS services (localhost:3000,localhost:9443,localhost:8443).
Most browsers will show a security warning when you first access these URLs.
You’ll need to manually trust or accept the certificate in your browser before proceeding.
| Username | Password | Role | Description |
|---|---|---|---|
| admin | admin |
Keycloak admin | Access the Keycloak admin console |
| alice | alice |
ROLE_USER |
Standard user |
| bob | bob |
ROLE_USER |
Standard user |
| god | god |
ROLE_ADMIN |
Administrator user |
Note: User accounts are managed through Keycloak and automatically seeded during environment setup.
- Realm: playground
- Client: api_symfony
- Roles: ROLE_USER, ROLE_ADMIN
Clone the repository and execute the following commands
# Generate cert for HTTPS
cd scripts/
./scripts/generate-certs.sh
# Start the environment and wait some seconds
cd ../
docker-compose up -d --build
# Init Keycloak and test
cd scripts/
./scripts/import-keycloak.sh
curl -k https://localhost:8443/realms/playground/.well-known/openid-configuration
# Init PHP backend dependancies and database model
docker compose exec backend_php composer install
docker compose exec backend_php php bin/console doctrine:schema:update --forceInstall package for front
docker compose exec -it frontend_node sh
npm install react-scripts@latestInstall package for backend
docker compose exec backend_php sh
composer require nelmio/cors-bundle