A modern hotel search and booking application powered by LiteAPI, featuring interactive maps, real-time hotel data, and seamless booking experiences across web and mobile platforms.
- LiteAPI Widget Integration: Complete widget suite including search bars, hotel lists, and interactive maps
- Smart Hotel Search: Real-time search with destination autocomplete and live availability
- Interactive Maps: Explore hotels with integrated LiteAPI maps and location-based filtering
- Mobile-First Design: Responsive UI optimized for all devices with touch-friendly interfaces
- Direct Booking Integration: Seamless booking flow with StaySwift branded domains
- Travel Amenities: Uber vouchers and eSIM data plans for enhanced travel experience
- Professional UI: Clean, modern interface with teal brand colors and smooth animations
- Help & Support: Comprehensive help center with FAQ and multiple contact options
- React 19 with TypeScript for modern development
- Vite for lightning-fast development and building
- Tailwind CSS with custom StaySwift theme (
rgb(8, 126, 139)) - React Router for client-side navigation
- LiteAPI SDK for hotel widgets and real-time data
- Lucide React for consistent iconography
- Frontend-Only Architecture: Streamlined deployment with direct LiteAPI integration
- Domain Strategy: Smart domain selection for optimal hotel data access
- Component-Based: Modular React components for maintainability
- TypeScript: Full type safety and enhanced developer experience
- Homepage (
/): Welcome section with featured hotels and search widget - Hotels Page (
/hotels): Browse hotels with interactive map and filtering - Amenities (
/amenities): Travel add-ons including Uber vouchers and eSIM plans - Destinations (
/destinations): Popular destination showcases - Help Center (
/help): FAQ, support options, and search functionality - Contact Us (
/contact): Multiple contact methods and support channels
- Booking Success (
/booking-success): Post-booking confirmation and next steps - Welcome Back (
/welcome-back): Returning user experience
- Node.js 18+ and npm
- Git for version control
- Modern web browser with JavaScript enabled
# Clone the repository
git clone https://github.com/yosephdev/StaySwift.git
cd StaySwift/frontend
# Install dependencies
npm install
# Start development server
npm run devRuns on: http://localhost:5175 (auto-detects available port)
Create .env files in the frontend directory:
VITE_WHITELABEL_DOMAIN=stayswift.nuitee.link
VITE_BOOKING_DOMAIN=stayswift.nuitee.link- Uses production LiteAPI SDK from CDN
- Smart domain selection for optimal hotel data access
- Branded booking URLs with StaySwift domain
- Automatic widget initialization and error handling
StaySwift/
βββ frontend/ # React TypeScript frontend
β βββ src/
β β βββ components/ # Reusable UI components
β β β βββ Header.tsx # Navigation header
β β β βββ Footer.tsx # Site footer
β β β βββ LiteAPIMap.tsx # Interactive hotel map
β β β βββ LiteAPISearchWidget.tsx # Hotel search
β β β βββ ErrorBoundary.tsx # Error handling
β β βββ pages/ # Page components
β β β βββ HomePage.tsx # Main landing page
β β β βββ HotelsPage.tsx # Hotel browsing with map
β β β βββ AmenitiesPage.tsx # Travel add-ons
β β β βββ HelpCenterPage.tsx # Support center
β β β βββ ContactUsPage.tsx # Contact forms
β β βββ services/ # API and utility services
β β β βββ liteAPIService.ts # LiteAPI integration
β β β βββ graphqlClient.ts # GraphQL client
β β βββ types/ # TypeScript definitions
β β βββ styles/ # CSS and theme files
β β βββ config/ # App configuration
β βββ public/ # Static assets
β β βββ StaySwift_logo.png # Brand logo
β β βββ favicon-stayswift.png # Site favicon
β βββ docs/ # Integration documentation
β βββ tailwind.config.js # Tailwind configuration
β βββ vite.config.ts # Vite configuration
βββ docs/ # Project documentation
β βββ LITEAPI_INTEGRATION.md # LiteAPI setup guide
β βββ LITEAPI_WIDGETS.md # Widget implementation
β βββ whitelabel-config.md # Domain configuration
βββ README.md # This file
- LiteAPISearchWidget: Hotel search with destination autocomplete and date selection
- LiteAPIMap: Interactive map with hotel markers and booking integration
- SimpleHotelsList: Hotel listings with real-time pricing and availability
- Smart Domain Handling: Automatic domain selection for optimal performance
- Responsive Design: Mobile-first approach with Tailwind CSS
- Error Handling: Comprehensive error boundaries and user feedback
- Loading States: Smooth loading experiences across all components
- Brand Consistency: Custom teal color theme (
rgb(8, 126, 139)) throughout
- Homepage: Featured hotels, search widget, and welcome section
- Hotels Page: Interactive map integration with hotel browsing
- Support System: Help center with FAQ and multiple contact channels
- Travel Services: Uber vouchers and eSIM data plan integrations
# Build for production
npm run build
# Deploy to Vercel (automatic from GitHub)
# Environment variables configured in Vercel dashboard# Build static files
npm run build
# Deploy dist/ folder to any static hosting provider
# (Netlify, Surge, GitHub Pages, etc.)- Production URL: [Deployed on Vercel]
- Features: All LiteAPI widgets functional with real hotel data
- Mobile: Fully responsive across all devices
- Performance: Optimized for fast loading and smooth interactions
- Real-time hotel search and availability
- Interactive map with hotel markers
- Direct booking integration with branded URLs
- Destination autocomplete and place search
- Optional GraphQL client for extended functionality
- Prepared for additional data sources and APIs
- Type-safe operations with generated types
- Primary:
#087e8bff- Teal brand color - Secondary: Complementary teal variations (50-900)
- Consistent: Applied across all interactive elements
- Font: Inter, system fonts for optimal loading
- Scale: Tailwind typography scale for consistency
- Responsive: Adaptive sizing across breakpoints
- Fork the repository
- Create a feature 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 licensed under the MIT License - see the LICENSE file for details.
- LiteAPI for comprehensive hotel data and widgets
- Vercel for seamless deployment platform
- Tailwind CSS for utility-first styling
- React for modern component architecture
- Vite for fast development experience
Developer: Yoseph Berhane Gebremedhin
Repository: https://github.com/yosephdev/StaySwift
Demo: [Live on Vercel]
β Star this repository if you found it helpful!