This project is a full-stack web application for hotel booking, built using the MERN stack (MongoDB, Express.js, React.js, and Node.js). It includes features for user authentication, hotel management, booking management, and more.
- User Authentication: Registration, login, and JWT-based authentication.
- Hotel Management: Create, read, update, and delete hotel details.
- Booking Management: Users can book hotels, and admins can manage bookings.
- Search and Filter: Search for hotels based on various criteria.
- Payment Integration: Secure payments using Stripe.
- backend: Contains the server-side code, including routes, controllers, models, and configuration files.
- frontend: Contains the client-side code, built with React.
- e2e-tests: Contains end-to-end tests for the application.
- Frontend: React, Redux, Bootstrap
- Backend: Node.js, Express.js, MongoDB, Mongoose
- Authentication: JWT
- Payments: Stripe
- Testing: Jest, Cypress
- Clone the repository:
git clone https://github.com/samrat-p/MERN-hotel-Booking-App-.git
- Install dependencies for both frontend and backend:
cd backend npm install cd ../frontend npm install
- Set up environment variables:
- Create a .env file in the backend directory and add the necessary configurations (e.g., MongoDB URI, JWT secret).
- In the backend directory:
npm start
- In the frontend directory:
npm start
- Open your browser and go to http://localhost:3000 to see the frontend.
- The backend runs on http://localhost:5000.
- Fork the repository.
- Create a new branch (git checkout -b feature/YourFeature).
- Commit your changes (git commit -am 'Add some feature').
- Push to the branch (git push origin feature/YourFeature).
- Open a pull request.
This project is licensed under the MIT License.
For any inquiries, you can contact the project maintainer via the GitHub repository.