REST API for managing tierlists, icebergs, bingos and other rankings.
symfony server:startCreate a new database migration:
php bin/console doctrine:migrations:diffApply database migrations:
php bin/console doctrine:migrations:migrate Clear cache:
sudo -u www-data php bin/console cache:clear- User Preferences API - Complete documentation for the user preferences save and retrieve API
Copy .env to .env.local and configure the required variables:
# Database
DATABASE_URL="mysql://user:password@127.0.0.1:3306/classement?serverVersion=mariadb-10.5.15&charset=utf8mb4"
# Preferences encryption key (generate with: php -r "echo bin2hex(random_bytes(32));")
APP_PREFERENCES_ENCRYPTION_KEY=your_32_byte_encryption_key_here
# OAuth (optional)
OAUTH_DISCORD_CLIENT_ID=
OAUTH_DISCORD_CLIENT_SECRET=
OAUTH_FACEBOOK_ID=
OAUTH_FACEBOOK_SECRET=
OAUTH_GOOGLE_CLIENT_ID=
OAUTH_GOOGLE_CLIENT_SECRET=
# TMDb API (optional)
TMDB_API_KEY=Run all tests:
php bin/phpunitRun tests for a specific feature:
php bin/phpunit tests/Controller/Preferences/classement-server/
├── config/ # Symfony configuration
├── migrations/ # Database migrations
├── public/ # Web entry point
├── src/
│ ├── Controller/ # API controllers
│ ├── Entity/ # Doctrine entities
│ ├── Repository/ # Doctrine repositories
│ ├── Service/ # Business services
│ ├── State/ # API state providers
│ └── Utils/ # Utils functions
├── tests/ # Unit and integration tests
│ └── Bruno/ # Bruno tests
└── vendor/ # Composer dependencies
See the LICENSE file for details.