How shraddha-pathradkar/mern-project works
Project type and purpose
• This is a MERN‐stack full-stack application for managing users and “places.”
• Frontend: React app (SPA) with routing, forms, image upload, state management via Context & custom hooks.
• Backend: Node.js + Express REST API with controllers, middleware, file upload, and MongoDB models.
• Purpose: allow users to sign up/in, create/update places (with images and geolocation), and view other users’ places.
File structure
• Top level splits into two main directories:
• frontend/ – React source, Firebase hosting config, .env for API endpoints
• backend/ – Express app, models/controllers/routes/middleware, file upload + static build folder
• Pattern in backend: MVC-like
• routes/ → controllers/ → models/
• middleware/ for auth (JWT) and file handling
• util/ for 3rd-party geocoding
• frontend/.firebase & firebase.json indicate Firebase hosting for the client.
README for additional insights
• Confirms MERN combo: React, Node, Express, MongoDB
• No deeper architecture section, so we infer typical separation: UI <→> API <→> Database + Storage.