npm run dev- Start Vite dev servernpm run build- Build for productionnpm run lint- Run ESLint checksnpm run preview- Preview production build
npm run start- Start servernpm run dev- Start server with nodemon for development
- Modules: ES Modules with explicit imports
- Components: Functional components with proper TypeScript interfaces
- UI Framework: Shadcn UI with Tailwind CSS
- State: React Context API for state management (see AuthContext.tsx)
- Naming: PascalCase for components, camelCase for variables/functions
- Modules: CommonJS with require statements
- Error Handling: Use
AppErrorclass for consistent error responses - Logging: Use logger object with levels (info, error, success, debug)
- Database: MongoDB with Mongoose for data modeling
- Routes: RESTful API design with proper documentation comments
- Client: Component-based architecture with UI components, pages, and contexts
- Server: Route-based organization with domain-specific modules
- Follow existing patterns when adding new files or features