Understand Grok2API Frontend code structure
mainThe frontend project is organized into the following directory structure:
src/app/: Routing and application shell.src/features/: Pages and interactions organized by business capability.src/entities/: Domain DTOs and query interfaces.src/shared/: API, authentication, configuration, components, and general utilities.src/components/ui/: Base components from shadcn/ui.
Key Patterns:
- All business requests are unified through
shared/api. - Server state is managed by TanStack Query.
- Pages compose business capabilities and do not directly maintain repetitive request, authentication, or formatting logic.