Skip to content
allyjweirPublic

About

claude-built, me-designed, hopefully helpful Scout tool

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Scoutmark

A mobile-first web application for scoring scout patrols across configurable criteria during meetings and camps.

Architecture

  • Backend: Go (standard library + samber/lo), protobuf API, PostgreSQL, OpenTelemetry → Honeycomb
  • Frontend: React + TypeScript, GitHub Primer UI, react-router, lodash
  • Real-time: WebSocket-based draft auto-saving with offline resilience

Concepts

Concept Description
Event Top-level grouping (e.g., "Summer Camp 2026", "Term 1 Meetings")
Patrol A scout patrol that can be scored
User Login identity representing a subcamp team, owns an ordered list of patrols
Criteria Template A reusable set of scoring dimensions
Criterion Individual scoring dimension (title, min, max) within a template
Session A time-windowed scoring event linked to an event and criteria template
Draft A mutable, unlocked submission containing in-progress scores and comments
Submission The canonical patrol score record; it becomes finalised when locked

Prerequisites

  • Go 1.24+
  • Node.js 20+
  • Postgres
  • Buf CLI
  • Honeycomb API key (for tracing)

Quick Start

# 1. Start dependencies
docker-compose up -d

# 2. Run migrations
go run ./cmd/migrate

# 3. Generate protobuf code
buf generate

# 4. Start the Go backend
HONEYCOMB_API_KEY=your-key go run ./cmd/server

# 5. Start the frontend dev server
cd frontend && npm ci && npm run dev

Environment Variables

Variable Description Default
DATABASE_URL PostgreSQL connection string postgres://scoutmark:scoutmark@localhost:5432/scoutmark?sslmode=disable
HONEYCOMB_API_KEY Honeycomb API key for traces (required)
HONEYCOMB_DATASET Honeycomb dataset name scoutmark
SERVER_ADDR Server listen address :8080
SESSION_SECRET Secret for signing session tokens scoutmark-dev-secret

Project Structure

scoutmark/
├── cmd/
│   ├── server/          # Main server entrypoint
│   └── migrate/         # Database migration tool
├── internal/
│   ├── auth/            # Authentication middleware & session management
│   ├── database/        # PostgreSQL connection & query helpers
│   ├── handlers/        # HTTP request handlers (protobuf API)
│   ├── tracing/         # OpenTelemetry setup (Honeycomb)
│   └── websocket/       # WebSocket hub & draft sync
├── proto/
│   └── scoutmark/v1/    # Protobuf service definitions
├── migrations/          # SQL migration files
├── frontend/
│   └── src/
│       ├── components/  # Reusable UI components
│       ├── pages/       # Route pages
│       ├── hooks/       # Custom React hooks
│       └── lib/         # API client, WebSocket client, utilities
├── docker-compose.yml
└── Makefile

About

claude-built, me-designed, hopefully helpful Scout tool

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages