How naucmeit/web works
Project type and purpose
• This is an “Education Monorepo”: a full-stack, modular learning platform managed by Nx.
• It contains multiple deployable applications (backend API, a modern “Coursition” app, a legacy “NMIT” app) plus shared libraries (AI, API helpers, auth, DB client, UI, utilities).
• Purpose: develop, build, and deploy multiple services and UIs in a single repository with shared code, ensuring consistency and reuse.
File structure
• Top-level tools/config: nx.json, pnpm-workspace.yaml, .prototools, Bun/PNPM settings, husky, CI config.
• apps/
• backend – Node/Bun HTTP service (src/index.ts)
• coursition – Modern React/TSX front-end (app router under src/routes, components, theme, liveblocks)
• legacy_nmit – Next.js educational site (pages/, components/, prisma migrations, supabase config, stripe/email utils)
• libs/
• ai – document/media generation wrappers
• api – central API-v1, dev, auth, order endpoints + utilities
• auth – user types/constants
• db – Prisma client and schema
• env – runtime/env var loading via Infisical
• ui/design-system – shared UI toolkit, storybook
• utils – common helpers (date, media, subtitle, copy, random)
README
• Confirms monorepo managed by Nx, uses Bun as runtime, PNPM workspaces, and recommends Proto for environment consistency.
• Describes apps vs. libs separation and gives Nx commands for dev/build/test.
Detailed coverage
• Break “libs/api” into sub-services (auth, order, v1).
• In Coursition, annotate liveblocks real-time channel and theme/lib imports.