How shreyagarg72/ecotravels works
Project type and purpose
• From the README and file tree, this is a full-stack web application (“EcoTravels”) that generates AI-driven travel itineraries.
• Frontend: React.js + Vite + TailwindCSS, handling UI and user input.
• Backend: Node.js + Express.js, providing RESTful endpoints.
• Database: MongoDB via Mongoose models.
• Authentication: Firebase Auth.
• External services: GeoApify (geocoding), Gemini dev AI API (itinerary and recommendations).
File structure
• Top-level dirs “frontend/” and “backend/” clearly separate client and server.
• Backend:
• config/db.js – MongoDB connection.
• model/Trip.js, User.js – Mongoose schemas.
• routes/…Router.js – Express routers for trips, users, rewards.
• index.js – Express app entry point.
• Frontend:
• src/components – React components organized by feature (Itinerary, PopularTrips, Pricing, InbuiltTrips, etc.).
• src/service/AIModal.jsx – likely the hook or component wrapping AI API calls.
• firebaseConfig.jsx – Firebase initialization for auth.
• vite.config.js, tailwind.config.js – build and styling setup.
README for additional insights
• The README highlights the AI itinerary generator, cost estimates, carbon footprint calculator, and tech stack.