Skip to content

nitishfire/triphub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

30 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TripHub 🏨

Find Your Perfect Stay β€” A modern hotel booking platform where users can browse, search, and book accommodations effortlessly.

License: MIT Live Demo JavaScript


Features ✨

  • πŸ” User Authentication β€” Secure login and registration system
  • 🏠 Hotel Listings β€” Browse and search hotels with detailed information
  • πŸ’° Booking System β€” Reserve your perfect stay with ease
  • πŸ” Advanced Search β€” Filter hotels by location, price, and amenities
  • πŸ“± Responsive Design β€” Works seamlessly on desktop, tablet, and mobile
  • 🎨 Modern UI β€” Clean and intuitive user interface

Tech Stack πŸ› οΈ

Frontend:

  • React.js
  • HTML5 & CSS3
  • JavaScript (ES6+)
  • Responsive Web Design

Backend:

  • Node.js
  • Express.js
  • REST API

Deployment:

  • Vercel (Frontend)

Getting Started πŸš€

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn

Installation

  1. Clone the repository:
   git clone https://github.com/nitishfire/triphub.git
   cd triphub
  1. Install dependencies for both client and server:
   # Install client dependencies
   cd client
   npm install
   cd ..

   # Install server dependencies
   cd server
   npm install
   cd ..
  1. Configure environment variables:
   # Create .env file in the root directory
   cp .env.example .env

Running Locally

# Terminal 1 - Start the backend server
cd server
npm start

# Terminal 2 - Start the frontend development server
cd client
npm start

The application will be available at http://localhost:3000


Usage πŸ“–

For Users

  1. Sign Up / Login β€” Create an account or log in to your existing account
  2. Search Hotels β€” Use the search bar to find hotels by location and dates
  3. View Details β€” Click on a hotel to see full details, amenities, and reviews
  4. Book a Room β€” Select your dates and complete the booking process
  5. Manage Bookings β€” View and manage your reservations

API Endpoints (Backend)

  • POST /auth/register β€” Register a new user
  • POST /auth/login β€” User login
  • GET /hotels β€” Get all available hotels
  • GET /hotels/:id β€” Get hotel details
  • POST /bookings β€” Create a new booking
  • GET /bookings β€” Get user bookings

Project Structure πŸ“

triphub/
β”œβ”€β”€ client/              # Frontend (React)
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   └── App.js
β”‚   └── package.json
β”œβ”€β”€ server/              # Backend (Node.js + Express)
β”‚   β”œβ”€β”€ routes/
β”‚   β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ controllers/
β”‚   └── server.js
β”œβ”€β”€ .env                 # Environment variables
└── package.json

Screenshots πŸ“Έ

Homepage - Hero Section

Homepage

Sign In Page

Login Page

Hotel Listings

Hotel Listings

Hotel Details

Hotel Details

Booking Page

Booking Page

User Dashboard

User Dashboard

Booking Confirmation

Booking Confirmation


Deployment 🌐

The application is deployed on Vercel and is live at:

πŸ‘‰ https://triphub-theta.vercel.app/


Contributing 🀝

Contributions are welcome! If you'd like to improve TripHub:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License πŸ“„

This project is distributed under the MIT License. See the LICENSE file for details.


Terms of Use βš–οΈ

By accessing, downloading, or using this project, you agree to the following:

  • Misuse: Any misuse or misleading use of this project is strictly prohibited
  • Modifications: You can modify the project, but modifications are at your own risk
  • Functionality: The project is provided as-is without any warranty
  • Acceptance: By downloading and using the project, you accept these terms

About

TripHub is a prototype hotel booking website built during my college final years. It demonstrates full-stack web development with a focus on user experience and modern web technologies.


Support πŸ’¬

If you have questions or need help:

  • Open an Issue on GitHub
  • Check out existing discussions
  • Review the documentation

Acknowledgements πŸ™

  • Built with React.js and Node.js
  • Deployed on Vercel
  • Created as a college project

Made with ❀️ by Nitish

About

TripHub is a full-stack hotel booking prototype built during my college final years to demonstrate comprehensive web development skills. This project showcases modern web technologies and best practices in building a scalable, user-friendly travel accommodation platform.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages