Skip to content

UxioMenDev/SpringClub

Repository files navigation

SpringClub

Java Spring Boot JPA Hibernate Spring Security Lombok Thymeleaf Bootstrap PostgreSQL Maven jQuery Docker

Description

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

Prerrequisites

🖥️ Local

  • Java 21
  • Maven
  • PostgreSQL

🐳 Docker

  • Docker
  • Docker Compose

Usage

  1. Clone the repository:

    git clone https://github.com/UxioMenDev/SpringClub.git

🖥️ Local

  1. Create database:

    create database if not exists spring_club;
  2. Compile and execute:

    ./mvnw spring-boot:run

🐳 Docker

  1. Build the Docker image:
    docker compose build
    
  2. Start the services:
    docker compose up
    

Log in with default administrator credentials:

username:

admin@admin

password:

admin

🌥️ Supported Cloud Providers

AWS S3

  • Service: Amazon S3
  • Bucket
  • Features: Standard S3 storage

Azure Blob Storage

  • Service: Azure Blob Storage
  • Files served through Spring Boot application
  • Secure access controlled by application

🔧 Environment Variables

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=...

Images

image image image image

About

A Spring Boot web app for managing sport clubs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages