How ginoking/memories works
Main Components
A. Client-Side (Frontend):
• Vue 3 + TypeScript application
• Key components:
• Authentication views (Login, Signup, Reset)
• Main application views (HomeView, Info)
• Shared components (EventModal, TypeSelector, etc.)
• Axios for API communication
B. Server-Side (Backend):
• Node.js Express application
• Authentication system
• Controllers layer
• Validation layer
• Database interface layer
C. Database:
• MongoDB with Mongoose ODM
D. Infrastructure:
• Docker containers
• GCP Services (Cloud Build, Artifact Registry, Cloud Run)
[Client Layer]
• ↕️
[Server Layer]
• ↕️
[Database Layer]
[GCP Cloud Run]
• ↓
[Docker Containers]
• ↓
[Application Layers]
Specific Component Details
A. Client Container:
• Main Vue components and stores
• Axios communication layer
B. Server Container:
• Express.js application structure
• Authentication flow (passport-local-mongoose, JWT)
• Controller organization
• Validation layer
C. Database Container:
• MongoDB connection
• Main collections (users, stories)
D. Infrastructure Layer:
• GCP Cloud Build pipeline
• Artifact Registry connection
• Demonstrate Cloud Run deployment
Important Flows to Highlight
A. Authentication Flow:
Client Login → JWT Generation → Token Storage → Protected Routes
B. Data Flow:
Client Request → Validation → Controller → Database → Response
C. Deployment Flow:
GitHub Push → Cloud Build → Artifact Registry → Cloud Run