Files
canopy-workloads/learning
kiskaadee 19a63811e2 refactor(learning): purge unnecessary system stats and docker integration
This commit removes the system monitoring, docker status, and bookmark
features from the learning board to reduce complexity and improve
security

- Remove `/system-stats`, and `/bookmarks` API endpoints and their
  controller logic
- Drop Python dependencies `psutils` and `docker` (and associated
  lockfile entries)
- Remove Docker socket proxy configuration, network bindings, and
  environment variables from `docker-compose.yml` and `config.py`
- Remove the read-only `/home` volume mount from the Docker compose file
2026-07-09 15:20:06 -05:00
..

Learning Hub

A FastAPI-based service for managing courses and monitoring system infrastructure. Refactored into a layered architecture for maintainability and type-safety.


🌟 Features

  • Layered Architecture: Separation of concerns between Config, Database, Models, Controllers, and Routes.
  • Turso Integration: Support for LibSQL (Turso) cloud databases with local SQLite fallback.
  • System Monitoring: CPU, RAM, and Disk usage statistics.
  • Docker Integration: Monitor status of other containerized services.
  • Strict Typing: Verified with pyright in strict mode.
  • UV Powered: Managed by uv for fast, reproducible builds.

🛠️ Development

The project uses uv for dependency management.

# Install dependencies
uv sync

# Run tests
uv run python -m unittest discover tests

# Run type checking
uv run pyright

🚀 Deployment

This service is managed as part of the unified Traefik deployments stack.

To start:

appctl up learning

Refer to the root README.md for details on how environment variables are securely injected at runtime.


📦 Volumes

  • ./data: Stores the local SQLite database if no remote URL is provided.
  • /home: Mounted as read-only for system statistics monitoring.