A Spring Boot web app for managing sport clubs
- Spring Security authentication
- Different user roles: user, admin and coach
- Create players and coaches and relate them to teams
- Creates Seasons automatically every year
- Automatically asigns players to teams based on their age and gender
- Filter teams by season and players by age
- PayPal integration
- Java 21
- Maven
- PostgreSQL
- Docker
- Docker Compose
-
Clone the repository:
git clone https://github.com/UxioMenDev/SpringClub.git
-
Create database:
create database if not exists spring_club;
-
Compile and execute:
./mvnw spring-boot:run
- Build the Docker image:
docker compose build
- Start the services:
docker compose up
Log in with default administrator credentials:
username:
admin@admin
password:
admin
- Service: Amazon S3
- Bucket
- Features: Standard S3 storage
- Service: Azure Blob Storage
- Files served through Spring Boot application
- Secure access controlled by application
DATABASE_URL=jdbc:your-database-url
DATABASE_USERNAME=your-username
DATABASE_PASSWORD=your-password
### Storage Provider Selection
# Choose storage provider: azure or aws, local by default
STORAGE_PROVIDER=local
# AWS S3 Configuration
AWS_REGION=your-region
AWS_S3_BUCKET_NAME=your-bucket-name
AWS_ACCESS_KEY_ID=your-access-key
AWS_SECRET_ACCESS_KEY=your-secret-key
# Azure Blob Storage Configuration
AZURE_STORAGE_ACCOUNT_NAME=your-storage-account
AZURE_STORAGE_CONTAINER_NAME=media
AZURE_STORAGE_CONNECTION_STRING=DefaultEndpointsProtocol=https;AccountName=...