How didar-code/nodejs-express-mongodb-real-estate-platform works
Property Hub is a real-estate listing and sales platform: visitors browse and search properties, while authenticated agents manage an enquiry cart and record sales; administrators manage inventory and oversee sales and users. The root app.js is the fuller platform, with JSON-backed records, sessions, notifications, audit data, and WebSocket updates. property-app/app.js is a separate, smaller application variant with its own listing and checkout workflow. The README documents image uploads and MongoDB support; the sampled excerpts do not establish a MongoDB runtime call path, so that integration is not drawn.
Main entry points: app.js Main Express app · property-app/app.js Variant Express app · properties.json Property records · users.json User records
Components 23
Users
- Visitor / agent / admin
Main platform
- Main Express app
app.js - Accounts and sessions
app.js - Property browsing
app.js - Inventory management
app.js - Cart and sales
app.js - Admin oversight
app.js - Notifications and audit
app.js - WebSocket updates
app.js
JSON records
- Property records
data/properties.json - User records
data/users.json - Sales records
data/sales.json - Notification records
data/notifications.json - Audit records
data/audit_log.json - Database settings
data/db_config.json
Page views
- Public pages
views/home.ejs - Agent dashboard
views/dashboard.ejs - Admin pages
views/admin-inventory.ejs - Sales ledger
views/sales-log.ejs
Standalone variant
- Variant Express app
property-app/app.js - Variant property records
property-app/data/properties.json - Variant sales records
property-app/data/sales.json - Variant views
property-app/views/home.ejs
Connections 26
- Visitor / agent / admin → Main Express app: uses
README.md - Main Express app → Accounts and sessions: routes through
app.js - Accounts and sessions → User records: reads and writes
app.js - Main Express app → Property browsing: routes to
app.js - Property browsing → Property records: reads
app.js - Property browsing → Public pages: renders
app.js - Main Express app → Inventory management: routes to
app.js - Inventory management → Property records: reads and writes
app.js - Inventory management → Admin pages: renders
app.js - Main Express app → Cart and sales: routes to
app.js - Cart and sales → Property records: reads
app.js - Cart and sales → Sales records: writes
app.js - Cart and sales → Agent dashboard: renders
app.js - Main Express app → Admin oversight: routes to
app.js - Admin oversight → Sales records: reads
app.js - Admin oversight → User records: reads and writes
app.js - Admin oversight → Sales ledger: renders
app.js - Main Express app → Notifications and audit: routes to
app.js - Notifications and audit → Notification records: reads and writes
app.js - Notifications and audit → Audit records: writes
app.js - Main Express app → WebSocket updates: broadcasts updates
app.js - Admin oversight → Database settings: reads and writes
app.js - Visitor / agent / admin → Variant Express app: uses
property-app/app.js - Variant Express app → Variant property records: reads and writes
property-app/app.js - Variant Express app → Variant sales records: writes
property-app/app.js - Variant Express app → Variant views: renders
property-app/app.js