Skip to content

A full-featured, modern, end-to-end-tested, full-stack web application where users can intuitively search, browse, and book hotels and places to stay while traveling. Users can also list their properties for customers to book and earn profit.

Notifications You must be signed in to change notification settings

saif-gitreps/Light-Inn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

63 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Light Inn - A modern platform for booking a place to stay.

A full-featured, modern, end-to-end-tested, full-stack web application where users can intuitively search, browse, and book hotels and places to stay while traveling. Users can also list their properties for customers to book and earn profit.

Features

🎨 Clean UI and Simple UX

  • πŸ”§ Built from scratch with modern technology using React and ShadCn components.
  • πŸ›  Features a clean, modern, and compact design using Tailwind CSS.
  • ⚑️ Fast and responsive with smooth transitions and dynamic skeleton loaders between pages.

πŸ§‘πŸ»β€πŸ’» User Capabilities

  • Browse through Hotels and check out interested places to stay without needing to be authenticated.
  • Sign up to create an account to confirm booking.
  • Intuitively search, filter, and sort for different hotels.
  • Authenticated users can:
    • Confirm the booking and payment of their hotel.
    • Add/Update a hotel for other customers.
    • Check out their bookings and hotels.
    • Contact hotel owners in realtime chat and get more details.

πŸ” Authentication and Security

  • Secure stateless JWT authentication using secure HTTP-only cookies for safe browsing.
  • Secure transactions powered by Stripe.
  • Secure websocket connection using http-cookie for realtime chat.

πŸ’» Tech Stack and Features

  • πŸ–₯ Fully written in React, following best coding practices for maintainability and scalability.
  • πŸ“œ Utilizes React Hook Form for strict form input validation and error handling.
  • 🀝 End-to-end type safety on the backend and frontend using Typescript for scalability and maintainability.
  • πŸ“ Seamless integration of data-fetching and mutation API services using Tanstack React Query.
  • πŸŒ„ Paginated displays of hotels on the search results page with previous/next navigation.
  • πŸš€ Efficient cache management and cache invalidation using Tanstack React Query.
  • πŸ–ΌοΈ Media management and storage using multer and Cloudinary services.
  • πŸ“œ Realtime chat feature using Socket.io.
  • πŸ¦₯ Lazy loading of images for fast and responsive rendering of bulk images using React Lazy Load.
  • πŸ“ Simple global Auth, Error, Success, and Search query state management using React Context.
  • πŸ₯‚ Beautiful handling of success and error messages using Custom Toast Component.
  • πŸ›  API input validation using express-validator.
  • πŸ”’ Route protection from unauthenticated requests.
  • πŸ”¬ Fully end-to-end tested using Playwright tests.
  • πŸͺ΅ Custom logger for monitoring requests in the development terminal.
  • 🦦 Schema and queries built with Mongoose and MongoDB.

🎁 Additional Features

  • πŸ”„ Highly customizable and extendable, with more features planned for future updates.
  • πŸ“± Fully responsive design for both mobile and desktop devices.

About

A full-featured, modern, end-to-end-tested, full-stack web application where users can intuitively search, browse, and book hotels and places to stay while traveling. Users can also list their properties for customers to book and earn profit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published