- Authentication: Secure endpoints using JWT (JSON Web Tokens).
- Database: Integration with MongoDB for storing hotel and user data.
- API: RESTful API endpoints for managing hotels, rooms, reservations, and users.
- Validation: Request validation using Joi.
- Error Handling: Centralized error handling middleware.
- Middleware: Express middleware for logging and authentication.
- Environment Variables: Using dotenv for managing environment variables.
To run this server locally, you need to have Node.js and MongoDB installed on your machine.
- Clone the repository:
git clone <repository-url>
cd hotel-management-app-server
- Install dependencies:
npm install
- Run the server:
npm start