How praveensaharan/vendor-management works
Main Components
• Frontend Client: Represented by the React application. Key elements include components for login (Firebase Google login), vendor display, and operations like create, update, and delete vendor information.
• Backend Server: A Node.js application that acts as an intermediary between the frontend and the database.
• Database: Firebase Realtime Database, which stores vendor profiles and related data.
• External Services:
• Firebase Authentication: Used for secure login via Google.
• Hosting services: The frontend is hosted on Netlify, and the backend is hosted on Microsoft Azure.
Relationships and Interactions
• The user’s browser loads the React application (frontend) which is served by Netlify.
• Upon login, the frontend interacts with Firebase Auth for Google authentication.
• When vendor data is created, edited, or deleted, the React app sends requests to the backend Node.js server.
• The Node.js server receives these requests and interacts with Firebase Realtime Database for persistence.
• Data flows back from the database to the backend and then to the frontend to update the UI.
Important Architectural Patterns and Technologies
• Separation of Concerns / Layered Architecture:
• Frontend: UI, user authentication, and vendor management operations.
• Backend: API layer that manages business logic and database interactions.
• Database: Managed persistence layer.
• RESTful communication (or similar API requests) between the frontend and backend services.
• Use of Firebase for authentication which integrates with both the frontend (via Firebase SDK) and the backend (to confirm tokens or perform secure operations).
• Cloud Hosting: Distinction in deployment with frontend on Netlify and backend on Azure.
Detailed Advice
• Keep the labels clear and consider including port numbers, if applicable (e.g., port 5173 for the frontend and port 5000 for the backend).
• Integration of Firebase authentication both at the UI layer (for logging in via Google) and at service level where needed for secure operations.