How radhechaudhary/hotelier works
Project type and purpose
• From the file tree and README, this is a full-stack Hotel Management web application (“hotelier”) offering room, customer, staff management, automated billing, and interactive reporting.
• Tech stack: React.js + Tailwind CSS + Framer Motion on the frontend, Express.js + Node.js on the backend, PostgreSQL for persistence, JWT & bcrypt for security.
File structure
• Top-level:
– “Hotelier Frontend” folder: a Vite-bootstrapped React app with Tailwind.
– “backend” folder: an Express.js API with index.js, .env, JWT middleware.
– Root README.md.
• Frontend substructure:
– public, src (components, features, store), config files (eslint, postcss, tailwind, vite).
– src/components split into HomeComponents (landing, login/register) and “Functionality Components” (dashboard, rooms, customers, billing forms, reports, charts).
– src/features/data.Slice.js and src/store/store.js implement Redux Toolkit state management.
• Backend:
– index.js sets up routes/controllers.
– verifyTokenMiddleware.js enforces JWT authentication.
– .env holds secrets and DB connection string.
README for additional insights
• Confirms full-stack scope, feature set (rooms, staff, billing, reports), and security via JWT + bcrypt.
Thoroughness
• Critical paths like authentication and reporting workflows.