No description
  • TypeScript 55.8%
  • Python 42.6%
  • JavaScript 0.6%
  • CSS 0.5%
  • Dockerfile 0.2%
  • Other 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-15 00:53:58 +01:00
backend add tag_collection_scope 2026-11-15 00:53:58 +01:00
database add tag_collection_scope 2026-11-15 00:53:58 +01:00
frontend add tag_collection_scope 2026-11-15 00:53:58 +01:00
nginx Update README 2026-11-13 21:02:42 +01:00
.example.env update UserProfile permissions and style 2026-11-14 19:31:08 +01:00
.gitignore add CRUD tests to backend 2026-11-13 20:42:48 +01:00
docker-compose.dev.yml init 2026-11-13 20:18:44 +01:00
docker-compose.yml update UserProfile permissions and style 2026-11-14 19:31:08 +01:00
README.md Update README 2026-11-13 21:02:42 +01:00
taskfile.yml add basic styling 2026-11-13 23:01:08 +01:00

Vereinsverwaltung (Club Administration System)

A comprehensive club administration system with secure data management, authentication, and modern web interface.

Overview

This project provides a complete solution for managing club memberships and related data with strong security features:

  • Backend: FastAPI application with automatic encryption of sensitive data
  • Frontend: React/Vite application with TypeScript
  • Database: MariaDB with secure schema design
  • Authentication: OAuth2/OIDC integration with Authentik
  • Deployment: Docker-based containerization with Nginx reverse proxy

Project Structure

.
├── backend/              # FastAPI backend service
├── frontend/             # React/Vite frontend application
├── database/             # Database schema and initialization
├── nginx/                # Nginx reverse proxy configuration
├── docker-compose.yml    # Production deployment configuration
├── docker-compose.dev.yml # Development deployment configuration
└── taskfile.yml          # Task automation scripts

Key Features

Security

  • Automatic encryption of personally identifiable information (PII)
  • OAuth2/OIDC authentication with role-based access control
  • Secure database design with proper relationships
  • Reverse proxy for centralized request handling

Data Management

  • Member, sponsor, and partner entity management
  • Personal data storage with automatic encryption
  • Membership and financial information tracking
  • Flexible tagging system for categorization

Authentication & Authorization

  • Two user roles: mitglied (member) and vorstand (board)
  • Members can only access their own data
  • Board members can access all data
  • Integration with Authentik identity provider

Getting Started

Prerequisites

  • Docker and Docker Compose
  • Authentik identity server (for authentication)

Quick Start

  1. Clone the repository

  2. Copy .example.env to .env and configure:

    cp .example.env .env
    # Edit .env with your configuration
    
  3. Start the application:

    docker-compose up -d
    
  4. Access the application at http://localhost:8000

Development Mode

For active development with hot reloading:

docker-compose -f docker-compose.dev.yml up -d

This configuration proxies frontend requests to your local Vite development server.

Configuration

Environment Variables

Key configuration variables in .env:

# Database
MARIADB_ROOT_PASSWORD=your_root_password_here
MARIADB_DATABASE=app_db
MARIADB_USER=app_user
MARIADB_PASSWORD=your_user_password_here

# Ports
PORT=8000

# Security
ENCRYPTION_KEY=your_encryption_key_here

# Authentik
AUTHENTIK_ISSUER=http://your.authentik.url/application/o/
AUTHENTIK_CLIENT_ID=your_authentik_client_id
AUTHENTIK_CLIENT_SECRET=your_authentik_client_secret

Generating Encryption Keys

Run the key generation script in the backend:

cd backend
python generate_encryption_key.py

Services

Backend (FastAPI)

  • RESTful API for entity management
  • Automatic data encryption
  • OAuth2/OIDC authentication
  • Interactive API documentation at /docs

Frontend (React/Vite)

  • Modern web interface
  • TypeScript for type safety
  • Responsive design
  • Authentication flow integration

Database (MariaDB)

  • Secure schema with proper relationships
  • Initialization scripts for demo data
  • Containerized deployment

Nginx

  • Reverse proxy for request routing
  • Production and development configurations
  • Centralized entry point for all services

Deployment Architecture

Internet → Nginx → [Backend API]
               → [Frontend App]
               → [Database]

Nginx routes:

  • /api/* → Backend service
  • /docs, /redoc, /openapi.json → Backend documentation
  • All other paths → Frontend application

Development Workflow

Backend Development

  1. Modify files in backend/app/
  2. Changes are automatically reloaded in development mode
  3. Run tests with ./run_tests.sh

Frontend Development

  1. Work in frontend/src/
  2. Use npm run dev for local development
  3. Build with npm run build for production

Database Changes

  1. Modify database/30_entities-init.sql
  2. Restart containers or manually apply changes
  3. Test with sample data

Monitoring and Maintenance

Logs

View container logs:

docker-compose logs -f

Backups

Database backups:

docker exec vereinsverwaltung_database mysqldump -u root -p app_db > backup.sql

Updates

Pull latest changes and rebuild:

git pull
docker-compose down
docker-compose up --build -d

Troubleshooting

Common Issues

  1. Services won't start: Check environment variables and dependencies
  2. Authentication failures: Verify Authentik configuration
  3. Database connection errors: Check credentials and network access
  4. Permission denied: Ensure user has appropriate roles

Debugging Steps

  1. Check container status:

    docker-compose ps
    
  2. View logs for specific services:

    docker-compose logs backend
    
  3. Enter containers for debugging:

    docker exec -it vereinsverwaltung_backend sh
    
  4. Test internal connectivity:

    docker exec vereinsverwaltung_backend ping db
    

Contributing

  1. Fork the repository
  2. Create feature branches
  3. Follow existing code patterns
  4. Add tests for new functionality
  5. Submit pull requests with clear descriptions

Support

For issues, please create a GitHub issue with:

  • Description of the problem
  • Steps to reproduce
  • Relevant logs or error messages
  • Environment information