A backend Hotel Management REST API built using Node.js, Express, and MongoDB.
This project manages hotel staff (persons) and menu items, providing clean and structured APIs for CRUD operations.
- Add new staff/person
- Fetch all persons
- Filter persons by work type (chef, manager, waiter)
- Structured MongoDB schema using Mongoose
- Add menu items
- Fetch all menu items
- Update and delete menu items
- RESTful API design
- Backend: Node.js, Express.js
- Database: MongoDB
- ODM: Mongoose
- Tools: Postman, npm
- Environment Config: dotenv
git clone https://github.com/VISHRUT86/node_hotels.git
cd node_hotels
npm install
Create a .env file in the root directory and add:
MONGO_URI=your_mongodb_connection_string
PORT=3000
node server.js
POST /personGET /personGET /person/:workType
POST /menuGET /menuPUT /menu/:idDELETE /menu/:id
- Building RESTful APIs using Express
- Designing MongoDB schemas with Mongoose
- API routing and controller separation
- Backend authentication structure basics
- Environment configuration and database connection handling
- Add JWT-based authentication
- Role-based access control
- Validation and error handling improvements
- API documentation using Swagger
- Deploy on cloud (Render / Railway)
Contributions are welcome.
Feel free to fork the repository and submit pull requests.
Vishrut Bharti
GitHub: https://github.com/VISHRUT86