How mohcinesafi/fittrack-mobile_app-expo works
Project type and purpose
• This is a front-end application built with Next.js (App Router) and TypeScript.
• Its domain is a fitness-tracking dashboard (pages: achievements, stats, workouts, profile), currently backed by mock data.
File structure
• app/ – Next.js route handlers and layouts
– (tabs)/_layout.tsx defines a shared tab bar, then one file per tab (achievements.tsx, index.tsx, etc.)
– +not-found.tsx, app/_layout.tsx for global shell
• components/ – reusable UI widgets (Card components, Progress circles, Profile section)
• hooks/ – custom React hooks (e.g. useFrameworkReady)
• utils/ – mockData generation and other utilities
• assets/images/ – static images or SVGs
• types/ – TypeScript type definitions (dataTypes, env vars)
• config files – package.json, tsconfig.json, .prettierrc, .bolt/config.json, etc.
README
• Only contains a preview image with no textual architecture guidance.
a. Main components to show
– Next.js App Layer
• Router & Layouts (app/_layout.tsx, app/(tabs)/_layout.tsx)
– UI Component Library (components/*)
– Data Layer
• MockData Service (utils/mockData.ts)
• Future Real API Endpoints (next/api or external REST)
– Hooks & Orchestration (hooks/useFrameworkReady.ts)
– Assets (images)
– Type System (types/*.ts)
– Build & Deployment (Node.js, TypeScript compiler, Prettier, Bolt config)
b. Relationships & interactions
• Browser → Next.js Router → Page Layout → Page Component
• Page Components → UI Components (cards, progress bars)
• UI Components & hooks call Data Layer → mockData or external API → Data returns to components
• Build pipeline compiles TSX to JS, lints, bundles assets, then deploys
c. Architectural patterns & principles
• Component-based UI composition
• App Router + nested layouts (Next.js recommended pattern)
• Separation of concerns:
– Pages vs. shared components vs. data utils vs. type definitions
– Presentation vs. data fetching versus business logic (hooks)
d. Key technologies & frameworks
• Next.js 13+ (App Router)
• React + TypeScript
• Bolt (monorepo/packager)
• ESLint/Prettier, Node.js, npm