How lakshya-1216/voyage-vibe- works
Main Components
• Frontend Client/UI:
• Components: EJS pages (located in folders like Home_page, Destinations, destPages, about, contact, packages).
• Static Assets: CSS files, JavaScript files, images, and utilities under the public directory.
• Backend Server:
• Server Code: server.js that sets up and configures the Express.js server.
• Route Handlers & Views: Organized indirectly via EJS file folders (e.g., Home_page with its login, signup, reviews subdirectories).
• Authentication: Using JWT-based techniques as noted in the README.
• Database:
• MongoDB: Interacts with the application via model files in the models directory (review.js and user.js).
• External Services:
• Deployment platforms (Vercel/Netlify for frontend, Heroku/Render for backend) and any third-party APIs (e.g., for budget estimation, itinerary personalization, potential future integrations with weather/currency APIs).
Interactions and Relationships
• The client (browser) interacts with the server via HTTP requests.
• The server renders dynamic pages using EJS templates and serves static assets.
• The server communicates with the MongoDB database through the user and review models.
• Authentication middleware manages JWT tokens to ensure secure user sessions.
• Future enhancements (as per the README) might integrate AI and real-time services, so keep a placeholder for external API integrations.
Architectural Patterns
• The project follows a Model-View-Controller-like pattern even if not explicitly segmented: “models” for data, “views” (EJS templates under various directories) for UI, and “controllers” integrated in server.js (and possibly route handlers defined either inline or organized in the file tree).
• There is a clear separation between presentation (frontend EJS views and public assets) and business logic (server-side JavaScript and models).
Relevant Technologies
• Frontend: HTML, CSS, JavaScript, and possibly React (as mentioned in the README, though file tree suggests heavy use of EJS).
• Backend: Node.js, Express.js.
• Database: MongoDB.
• Authentication: JWT.
• Deployment: Host platforms as specified in the README.