Skip to content
MicroClub-USTHBPublic

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

HR Event Platform

The staff-only tool HR uses to run a Micro Club event from registration to check-in. It is built on top of MCID, the club's identity service. The approved specification is in docs/Event Platform Specification v2.pdf.

Monorepo

Path What
apps/web Staff panel: TanStack Start, Router, Query, Table, Zustand, axios, Tailwind v4, mcoli-ui
apps/api NestJS 12 API with Drizzle ORM and PostgreSQL
packages/contracts Wire types shared by api and web
packages/typescript-config Shared tsconfig presets
docs/ Specification (read-only)

pnpm workspaces + Turborepo. Node 24+ (version in .nvmrc).

Getting started

pnpm install
docker compose up -d                           # PostgreSQL: hr_events (dev) and hr_events_test (tests)
cp apps/web/.env.example apps/web/.env
cp apps/api/.env.example apps/api/.env
pnpm --filter @hr-event/api db:migrate
pnpm dev                                     # web :3000, api :4000
pnpm --filter @hr-event/api dev:mcid         # optional: fake MCID on :3001 (build the api once first)

Quality gate (also what CI runs): pnpm check.

Scope

Phase 1 only for now (scope IDs S1-S14 in guides/general/scope-and-spec.md): events with a dynamic timeline, forms and submission intake, staff and participants with dynamic lifecycle stages, review, manual emails with QR, check-in. The activity ledger (phase 2) and rules, triggers, actions and event results are deliberately not built yet.

Front-end architecture in one minute

Feature-based. routes/ are thin; features/<feature>/ are self-contained (api/{keys,service,mappers,queries,mutations}, components, types, optional stores, barrel index.ts) and never import each other; shared/ holds everything cross-cutting; one axios apiClient is configured once and used only from service.ts files. Full contract: apps/web/AGENTS.md.

pnpm --filter @hr-event/web new:feature <name>   # the only way to create a feature
pnpm --filter @hr-event/web check:arch           # architecture rules (runs in lint and CI)
npx mcoli-ui@latest add <component>              # run in apps/web

Working with AI assistants

This repo is set up so Claude Code, OpenCode, Copilot or Cursor follow the same rules without you doing anything:

  • AGENTS.md / CLAUDE.md (root and apps/web) state the scope, the stack and the architecture as mandatory rules.
  • .claude/settings.json hooks (Claude Code) inject the rules at session start, block edits to generated or protected files (routeTree.gen.ts, lockfile, docs/, the guardrails themselves) and run the architecture check after every edit.
  • .claude/ and .opencode/ provide reviewer agents (architecture-guardian, backend-guardian, spec-guardian, state-architect, ui-guardian), commands (/new-feature, /new-module, /add-ui, /check) and skills (tanstack-intent, mcoli-ui).
  • TanStack skills ship inside the packages and stay current with them: run pnpm exec intent list from the repo root.
  • CI fails any change that breaks the architecture, types or build.

Please keep it that way: do not edit the guardrails to make a change pass; raise it with the team.

Contributing

Branch from dev and open the PR against dev (main is production and only takes release PRs from dev), use the PR template, keep commits free of AI attribution lines, and make sure the quality gate passes.

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages