How sachinmhetre678/portfolio works
High-Level Architecture Components
a) Client Layer
• Next.js Frontend (React Components)
• Static Assets (public directory)
• Client-side Routing
b) Server Layer
• Next.js API Routes
• Server-side Rendering (SSR)
• Static Site Generation (SSG)
c) External Services Layer
• Firebase (noted from firebase.ts)
• GitHub API Integration
• WakaTime API Integration
• Prisma Database
Component Organization
Modular structure with:
a) Core Components:
• Common Components (src/common/components)
• Layout System
• Element Library
• Sidebar Navigation
b) Feature Modules:
• Home Module
• About Module
• Projects Module
• Contact Module
Data Flow Architecture
Following flows:
a) API Routes:
• /api/contact
• /api/content
• /api/github
• /api/projects
• /api/views
• /api/read-stats
b) Service Integrations:
• GitHub Service
• WakaTime Service
• Contact Service
• Fetcher Service
Key Architectural Patterns to Highlight
• Module-based architecture (src/modules structure)
• Component composition pattern (elements and layouts)
• Service layer abstraction
• API route organization
• Context-based state management (MenuContext)
Implementation Details
a) Frontend Architecture:
• Common components hierarchy
• Module organization
• Routing structure
• Static asset management
b) Backend Services:
• API route handlers
• External service integrations
• Data fetching patterns
c) Build & Deploy:
• Next.js configuration
• Vercel deployment (indicated by vercel.json)
• Static site generation pipeline