Skip to content

🏨 Modern Hotel Booking System frontend built with React, TailwindCSS, and Context API. Features include hotel search, booking flow, secure payments, special offers, loyalty coins, reviews, and responsive UI/UX.

Notifications You must be signed in to change notification settings

Aarthi1720/frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏨 CasaStay – Hotel Booking System (Frontend)

Welcome to the CasaStay Hotel Booking System Frontend πŸŽ‰ – a modern web application built with React + Vite + TailwindCSS to deliver a seamless hotel booking experience with rich UI/UX enhancements.


✨ Features (User-Facing)

  • πŸ”Ž Search & Filtering – Find hotels by location, price, amenities, and room type.
  • 🏨 Hotel & Room Details – Images, descriptions, amenities, bed type, views, capacity.
  • πŸ“… Availability Calendar – Check room availability instantly for selected dates.
  • πŸ›οΈ Room Booking Flow – Select dates, guests, special requests, and confirm booking.
  • πŸ’³ Stripe Payment Integration – Secure card payments & digital wallets.
  • 🎁 Special Offers – Apply promo codes & discounts during checkout.
  • πŸͺ™ Loyalty Coins – Earn coins for bookings above β‚Ή1000.
  • β˜‘οΈ ID verification - Handled ID verification (manual/AI/ocr).
  • πŸ’¬ Reviews & Ratings – Only verified guests can submit reviews after stays.
  • πŸ‘€ User Profiles – Manage personal info, view booking history, and saved favorites.
  • πŸ“§ Notifications – Booking confirmations & reminders.
  • πŸ“± Responsive UI – Mobile-first, fully optimized with TailwindCSS.

πŸ› οΈ Tech Stack

  • βš›οΈ React 18 + Vite – Fast and modern React setup.
  • 🎨 TailwindCSS – Utility-first responsive design.
  • πŸ” React Router – Routing and protected routes.
  • 🍞 React Hot Toast – Notifications (smart positioning so it doesn’t overlap navbar).
  • πŸ“¦ Axios – API communication.
  • πŸ—‚ React Context API – State management (no Redux needed).

πŸš€ Enhancements / Add-ons

  • 🌈 Gradient layouts, modern modals with outside click-to-close.
  • πŸ“Š Booking success page redesigned with summaries & loyalty rewards.
  • πŸ›‘οΈ Conditional rendering of review forms (only verified users after paid stay).
  • 🧭 Admin panel excluded from user navbar after logout.
  • πŸ“± Mobile bottom navigation for user & admin flows.
  • πŸ–ΌοΈ Placeholder β€œNo offers / No reviews” messages to avoid user confusion.

⚑ Getting Started

# clone repo
git clone https://github.com/Aarthi1720/frontend
cd casastay-frontend

# install dependencies
npm install

# run locally
npm run dev

# build for production
npm run build

πŸ”— Environment Variables

Create a .env file with:

VITE_API_BASE_URL=http://localhost:5000/api
VITE_STATIC_URL=http://localhost:5000/
VITE_STRIPE_PUBLISHABLE_KEY=your_stripe_publishable_key

πŸ“Έ Screenshots

alt text


πŸš€ Live Demo & Test Accounts

Frontend: https://hotel-booking-frontend-beige.vercel.app/ Backend API (read-only docs): https://hotel-booking-backend-ruqd.onrender.com/

Admin (demo)

User (demo)

These are demo accounts for evaluation on the hosted site only.


About

🏨 Modern Hotel Booking System frontend built with React, TailwindCSS, and Context API. Features include hotel search, booking flow, secure payments, special offers, loyalty coins, reviews, and responsive UI/UX.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages