How ariful97768/visa-navigator works
Main Components
A. Frontend Layer (React Application):
• Divide into three main sections:
• Components (Authentication related: Login, Register)
• Pages (Visa management: AddVisa, AllVisa, VisaDetails, etc.)
• Context (AuthProvider for state management)
B. Authentication Layer:
• Firebase Authentication service
• Connection to AuthProvider context
C. Backend Layer:
• Express.js Server
• API Routes for visa management
• Authentication middleware
D. Database Layer:
• MongoDB Atlas
• Collections for:
• Users
• Visas
• Applications
Component Relationships
• User → Frontend → Firebase Auth (authentication flow)
• Frontend → Backend API (protected and public routes)
• Backend → MongoDB (data persistence)
• AuthProvider → Protected Routes (access control)
Specific Implementation Details
A. Frontend Structure:
React App
• Public Routes
• Home
• Login
• Register
• Protected Routes
• AddVisa
• MyAddedVisa
• VisaApplications
B. Data Flow Patterns:
Additional Elements
Supporting components:
• Firebase Hosting
• Environment configuration
• Static assets handling
• Error boundaries
• Animation components