How mithesh6369894902/parkspot works
ParkSpot is a parking-land rental portal: customers discover available sites, check capacity and pricing, book and pay, then manage bookings and reviews; owners register land and admins verify it. The supplied tree contains a React web client and Express API, while the README also describes a Flutter app not present in this tree. Edges are limited to relationships visible in excerpts, the source index, or README; some unsampled feature wiring is therefore omitted.
Main entry points: App.jsx Web routes · bookingController.js Booking and availability · server.js Express API · api.js API client
Components 34
Web experience
- Web routes
client/src/App.jsx - Auth state
client/src/context/AuthContext.jsx - Booking flow
client/src/pages/BookingPage.jsx - Land details
client/src/pages/LandDetail.jsx - Map discovery
client/src/pages/MapExplore.jsx - Land registration
client/src/pages/RegisterLand.jsx - Home discovery
client/src/pages/Home.jsx - Admin dashboard
client/src/pages/admin/Dashboard.jsx - Land verification
client/src/pages/admin/LandVerification.jsx - API client
client/src/services/api.js
Booking and payments
- Booking routes
server/src/routes/booking.js - Booking and availability
server/src/controllers/bookingController.js - Booking records
server/src/models/Booking.js - Payment processing
server/src/controllers/paymentController.js - Payment records
server/src/models/Payment.js - Dynamic pricing
server/src/utils/pricing.js
Land and discovery
- Land routes
server/src/routes/land.js - Land management
server/src/controllers/landController.js - Land records
server/src/models/Land.js - Reviews
server/src/controllers/reviewController.js - Review records
server/src/models/Review.js
Identity and operations
- Auth routes
server/src/routes/auth.js - Auth logic
server/src/controllers/authController.js - JWT authorization
server/src/middleware/auth.js - Admin routes
server/src/routes/admin.js - Admin operations
server/src/controllers/adminController.js - Support routes
server/src/routes/support.js - Dispute handling
server/src/controllers/supportController.js - Dispute records
server/src/models/Dispute.js - User records
server/src/models/User.js
API and persistence
- Express API
server/src/server.js
Other components
- Customer or owner
- Administrator
- Razorpay
Connections 41
- Customer or owner → Web routes: uses
client/src/App.jsx - Administrator → Web routes: uses
client/src/App.jsx - Web routes → Auth state: checks access
client/src/App.jsx - Web routes → Home discovery: routes to
client/src/App.jsx - Web routes → Map discovery: routes to
client/src/App.jsx - Web routes → Land details: routes to
client/src/App.jsx - Web routes → Booking flow: routes to
client/src/App.jsx - Web routes → Land registration: routes to
client/src/App.jsx - Web routes → Admin dashboard: routes to
client/src/App.jsx - Web routes → Land verification: routes to
client/src/App.jsx - Auth state → API client: requests auth
client/src/context/AuthContext.jsx - Home discovery → API client: loads lands
client/src/pages/Home.jsx - Map discovery → API client: loads lands
client/src/pages/MapExplore.jsx - Land registration → API client: submits land
client/src/pages/RegisterLand.jsx - API client → Express API: HTTP requests
- Express API → Auth routes: mounts
server/src/server.js - Express API → Land routes: mounts
server/src/server.js - Express API → Booking routes: mounts
server/src/server.js - Express API → Admin routes: mounts
server/src/server.js - Express API → Support routes: mounts
server/src/server.js - Auth routes → Auth logic: dispatches
server/src/routes/auth.js - Auth routes → JWT authorization: protects routes
server/src/routes/auth.js - Auth logic → User records: uses users
server/src/controllers/authController.js - JWT authorization → User records: loads user
server/src/middleware/auth.js - Land routes → Land management: dispatches
- Land management → Land records: reads and writes
server/src/controllers/landController.js - Booking routes → Booking and availability: dispatches
- Booking and availability → Booking records: reads and writes
server/src/controllers/bookingController.js - Booking and availability → Land records: checks land
server/src/controllers/bookingController.js - Booking and availability → Dynamic pricing: calculates price
server/src/controllers/bookingController.js - Booking and availability → Payment records: checks payment
server/src/controllers/bookingController.js - Booking and availability → Razorpay: requests refund
server/src/controllers/bookingController.js - Payment processing → Payment records: records payment
server/src/controllers/paymentController.js - Payment processing → Booking records: updates booking
server/src/controllers/paymentController.js - Payment processing → Razorpay: uses gateway
server/src/controllers/paymentController.js - Admin routes → Admin operations: dispatches
- Admin operations → Dispute records: reads disputes
server/src/controllers/adminController.js - Support routes → Dispute handling: dispatches
- Dispute handling → Dispute records: creates disputes
server/src/controllers/supportController.js - Reviews → Review records: reads and writes
server/src/controllers/reviewController.js - Reviews → Land records: updates ratings
server/src/controllers/reviewController.js