How mochavin/fp-pbkk works
Main Components
A. Client Layer:
• Next.js Frontend (Port 3000)
• Route structure (/auth, /protected)
• Components (BoardList, KanbanBoard)
• UI components library (shadcn/ui)
• Firebase integration for authentication
B. API Layer:
• Go Backend Server (Port 8080)
• Controllers (auth, board, card, list)
• Middleware (authentication)
• Routes
• Database connection
C. Database Layer:
• PostgreSQL Database
• Main entities (boards, lists, cards, users)
[Client Tier]
• Next.js Frontend |
• Public Routes |
• Login |
• Signup |
• Protected Routes |
• Boards View |
• Kanban Board |
• [Show UI Components & Firebase Auth] |
• ↕️ HTTP/REST
[API Tier]
• Go Backend (Gin Framework) |
• Controllers |
• AuthController |
• BoardController |
• ListController |
• CardController |
• Middleware |
• Routes |
• ↕️ GORM
[Data Tier]
• PostgreSQL Database |
• Users |
• Boards |
• Lists |
• Cards |
Important Elements to Highlight
a. Authentication Flow:
• JWT token flow between frontend and backend
• Firebase authentication integration
• Auth middleware protection
b. Data Flow:
• REST API calls between frontend and backend
• Database operations through GORM
• Real-time updates system
c. Key Features:
• Board management
• Operations
• Card handling
• User collaboration
Technical Details
• API endpoints structure
• Database schema relationships
• Authentication flow
• Real-time update mechanism
• Error handling paths