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.
- π 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.
- βοΈ 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).
- π 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.
# 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 buildCreate 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
Frontend: https://hotel-booking-frontend-beige.vercel.app/ Backend API (read-only docs): https://hotel-booking-backend-ruqd.onrender.com/
Admin (demo)
- Email: sweetaarthi1705@gmail.com
- Password: 123456
User (demo)
- Email: sweetaarthi1720@gmail.com
- Password: 987654
These are demo accounts for evaluation on the hosted site only.
