How riya-s9803/wanderlog works
Project type and purpose
• This is a React single‐page application (SPA) scaffolded with Vite, called “WanderLog.”
• Purpose: a travel logging app—users can browse a list of countries and cities, view city details on a map, and manage visit logs.
File structure
• Top level
• README.md, package.json, vite.config.js → project metadata and build config
• WanderLog/data/cities.json → static data source for city information
• WanderLog/public/index.html → HTML entry point
• src directory
• components/ → reusable UI building blocks (Button, Spinner, Map, CityItem, Sidebar, etc.)
• pages/ → route‐level views (HomePage, Login, Pricing, Product, PageNotFound, ProtectedRoute, AppLayout)
• contexts/ → React Contexts: CitiesContext (global city data), FakeAuthContext (authentication state)
• hooks/ → custom hooks: useGeolocation, useUrlPosition
• App.jsx + main.jsx → root components and router setup
• CSS Modules alongside each component for scoped styling
README
• Only contains the title “WanderLog.”
• Rely on filenames and folder conventions to infer architecture.
Detail
• Break components into sub‐domains (List, Form, Map, Navigation)
• Both runtime flows (data → UI) and dev‐time tooling (Vite)
• ProtectedRoute flow for authentication