How miyurudilakshan/roomio works
Roomio is a customer-and-designer interior visualization platform. Users enter through the routed React app, authenticate, configure a room in the wizard, then edit and save a furniture layout; customer and designer areas provide libraries, project management, and role-specific tools. The server exposes authentication, design, furniture, and client APIs backed by MongoDB models. The README documents the broad capabilities; sampled source supports the routing, editor dependencies, and server wiring, while some feature-page and API-service internals were not sampled.
Main entry points: RoomDesignerPage.jsx Room editor · App.js App routing · server.js Express server · designs.js Design routes
Components 29
Client experience
- App routing
client/src/App.js - Customer workspace
client/src/pages/customer/Library.jsx - Designer workspace
client/src/pages/designer/clients.jsx
Room planning
- Room wizard
client/src/pages/RoomWizardPage.jsx - Wizard state
client/src/context/WizardContext.jsx - Room editor
client/src/pages/RoomDesignerPage.jsx - 3D canvas
client/src/components/designer/DesignerCanvas.jsx - 2D room plan
client/src/components/designer/Room2DPlan.jsx - Furniture tools
client/src/components/designer/FurnitureLibrary.jsx - Room settings
client/src/components/designer/RoomSettingsPanel.jsx - Local design storage
client/src/utils/storage.js
Identity
- Auth state
client/src/context/AuthContext.jsx - Role route guard
client/src/components/ProtectedRoute.jsx
API services
- Auth routes
server/routes/auth.js - Auth handlers
server/controllers/authController.js - JWT middleware
server/middleware/auth.js - Design routes
server/routes/designs.js - Design handlers
server/controllers/designController.js - Furniture routes
server/routes/furnitureRoutes.js - Furniture handlers
server/controllers/furnitureController.js - Client routes
server/routes/clientRoutes.js - Client handlers
server/controllers/clientController.js - Express server
server/server.js
Persistence
- MongoDB
server/config/db.js - User records
server/models/User.js - Design records
server/models/Design.js - Furniture records
server/models/FurnitureItem.js - Client records
server/models/Client.js
Other components
- Customer / designer
Connections 35
- Customer / designer → App routing: opens
README.md - App routing → Auth state: provides auth
client/src/App.js - App routing → Room wizard: routes to
client/src/App.js - App routing → Room editor: routes to
client/src/App.js - App routing → Role route guard: protects routes
client/src/App.js - App routing → Wizard state: provides state
client/src/App.js - Room wizard → Wizard state: uses state
- Room editor → 3D canvas: renders
client/src/pages/RoomDesignerPage.jsx - Room editor → 2D room plan: renders
client/src/pages/RoomDesignerPage.jsx - Room editor → Furniture tools: renders
client/src/pages/RoomDesignerPage.jsx - Room editor → Room settings: renders
client/src/pages/RoomDesignerPage.jsx - Room editor → Local design storage: reads / writes
client/src/pages/RoomDesignerPage.jsx - Room editor → Auth state: reads identity
client/src/pages/RoomDesignerPage.jsx - Customer / designer → Customer workspace: manages projects
README.md - Customer / designer → Designer workspace: manages clients
README.md - Designer workspace → Client routes: requests clients
- Room editor → Design routes: saves designs
- Customer workspace → Furniture routes: browses catalog
- Express server → MongoDB: connects
server/server.js - Express server → Auth routes: mounts
server/server.js - Express server → Design routes: mounts
server/server.js - Express server → Furniture routes: mounts
server/server.js - Express server → Client routes: mounts
server/server.js - Auth routes → Auth handlers: dispatches
server/routes/auth.js - Auth routes → JWT middleware: applies
server/routes/auth.js - Design routes → Design handlers: dispatches
server/routes/designs.js - Design routes → JWT middleware: applies
server/routes/designs.js - Furniture routes → Furniture handlers: dispatches
server/routes/furnitureRoutes.js - Furniture routes → JWT middleware: applies optional
server/routes/furnitureRoutes.js - Client routes → Client handlers: dispatches
server/routes/clientRoutes.js - Client routes → JWT middleware: applies
server/routes/clientRoutes.js - Auth handlers → User records: queries
server/controllers/authController.js - Design handlers → Design records: reads / writes
server/controllers/designController.js - Furniture handlers → Furniture records: reads / writes
server/controllers/furnitureController.js - Client handlers → Client records: reads / writes
server/controllers/clientController.js