Skip to content

A fullstack web application built with MongoDB, Express, React, and Node.js. It features user authentication, CRUD operations, and a responsive design. MongoDB is used as the database to store application data.

Notifications You must be signed in to change notification settings

shitu13/book-my-hotel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book My Hotel

This project is a hotel booking website developed using the MERN stack (MongoDB, Express.js, React.js, Node.js). It allows users to search for hotels, view details, and make bookings.

Features

  • User Authentication: Register and login functionalities for users.
  • Hotel Search: Search for hotels based on location, date, and other filters.
  • Booking Management: View booking history and manage current bookings.
  • Admin Panel: Admin dashboard to manage hotels, bookings, and users.
  • Image Uploads: Integration with Cloudinary for uploading and managing hotel images.
  • Responsive Design: Mobile-friendly interface for seamless user experience.

Technologies Used

  • Frontend: React.js, HTML/CSS, Bootstrap (or any other UI framework)
  • Backend: Node.js, Express.js
  • Database: MongoDB
  • Image Uploads: Cloudinary
  • Testing: Playwright (for end-to-end testing)

Installation

  1. Clone the repository:

    git clone https://github.com/shitu13/book-my-hotel.git
    cd book-my-hotel
    
  2. Install dependencies:

    cd frontend
    npm install
    cd ../backend
    npm install
  3. Set up environment variables:

    • Create a .env file in the backend directory.
    • Add MongoDB URI, JWT secret, Cloudinary credentials (cloud name, API key, API secret), and any other necessary variables.
  4. Start the backend server:

    cd backend
    npm run dev
  5. Start the frontend development server:

    cd frontend
    npm run dev
    

Testing

  • End-to-end tests are implemented using Playwright.
  • Run tests using the following command:
    cd e2e-tests
    npx playwright test
    
    

Contributing

Contributions are welcome. Please fork the repository and create a pull request for any enhancements or fixes.

License

This project is licensed under the MIT License.

About

A fullstack web application built with MongoDB, Express, React, and Node.js. It features user authentication, CRUD operations, and a responsive design. MongoDB is used as the database to store application data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages