Skip to main content

Development

Code Style

  • TypeScript strict where possible
  • Prefer functional components and hooks
  • Keep components small and composable
  • Co-locate component styles

Useful Paths

client/app/           # routes and pages
client/components/    # UI + feature components
client/lib/           # services, utils, api layer
client/hooks/         # custom hooks
client/types/         # shared types

API Layer

Use the API service wrapper in client/lib/services for authenticated requests.
import { APIService } from '@/lib/services/api';

const api = new APIService('files');
// await api.get('/');

Auth

  • Config in client/auth.ts and client/auth.config.ts
  • Server components can use cookies/session via NextAuth

Testing

  • Jest + Testing Library configured
pnpm test

Common Scripts

pnpm dev
pnpm build
pnpm start
pnpm test