Find Your Perfect Stay β A modern hotel booking platform where users can browse, search, and book accommodations effortlessly.
- π 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
Frontend:
- React.js
- HTML5 & CSS3
- JavaScript (ES6+)
- Responsive Web Design
Backend:
- Node.js
- Express.js
- REST API
Deployment:
- Vercel (Frontend)
- Node.js (v14 or higher)
- npm or yarn
- Clone the repository:
git clone https://github.com/nitishfire/triphub.git
cd triphub- Install dependencies for both client and server:
# Install client dependencies
cd client
npm install
cd ..
# Install server dependencies
cd server
npm install
cd ..- Configure environment variables:
# Create .env file in the root directory
cp .env.example .env# Terminal 1 - Start the backend server
cd server
npm start
# Terminal 2 - Start the frontend development server
cd client
npm startThe application will be available at http://localhost:3000
- Sign Up / Login β Create an account or log in to your existing account
- Search Hotels β Use the search bar to find hotels by location and dates
- View Details β Click on a hotel to see full details, amenities, and reviews
- Book a Room β Select your dates and complete the booking process
- Manage Bookings β View and manage your reservations
POST /auth/registerβ Register a new userPOST /auth/loginβ User loginGET /hotelsβ Get all available hotelsGET /hotels/:idβ Get hotel detailsPOST /bookingsβ Create a new bookingGET /bookingsβ Get user bookings
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
The application is deployed on Vercel and is live at:
π https://triphub-theta.vercel.app/
Contributions are welcome! If you'd like to improve TripHub:
- Fork the repository
- Create a new branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is distributed under the MIT License. See the LICENSE file for details.
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
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.
If you have questions or need help:
- Open an Issue on GitHub
- Check out existing discussions
- Review the documentation
- Built with React.js and Node.js
- Deployed on Vercel
- Created as a college project
Made with β€οΈ by Nitish






