shjang1025 / breezebnb

Accommodation booking website inspired by Airbnb
https://breezebnb-5de83b36aa0c.herokuapp.com/
0 stars 0 forks source link
Screenshot 2024-04-25 at 11 00 19 PM


Welcome to Breezebnb

Breezebnb is a accommodation booking website inspired by Airbnb!


What is Breezebnb ?

Breezebnb enables travelers to book unique accommodations and cool places all over the world, from apartments and houses to villas, directly from the property owners or hosts. Users can search for properties by specific categories. Plus, users can share their thoughts about their stay by leaving reviews and ratings.


Service Architecture

service-architecture

Hightlights

Category Search Functionality

category-search

User-Friendly Guidance

Screenshot 2024-04-30 at 8 36 49 PM Screenshot 2024-04-30 at 8 36 56 PM Screenshot 2024-04-30 at 8 36 42 PM

Seamless Reservation Experience

def overlap
        Reservation.where('reserved_room_id = ? AND ((checkin < ? AND checkout > ?) 
                          OR (checkin < ? AND checkout > ?) OR (checkin >= ? AND checkout <= ?))',
                      reserved_room_id, checkout, checkout, checkin, checkin, checkin, checkout)
  end
def create 
        @reservation = Reservation.new(reservation_params)
        room = Room.find_by(id: params[:reservation][:reserved_room_id])

        if room 
            @reservation.room = room
            if @reservation.overlap.exists?
                render json: {error: 'Room is already booked for the requested dates'}, status: 422

            elsif @reservation.save
                render :show
            else 
                render json: {errors: @reservation.errors}, status: 422

            end
        else

            render json: {error: "Room not found" }, status: 404
        end
    end
Screenshot 2024-04-30 at 8 22 16 PM Screenshot 2024-04-30 at 8 22 02 PM vid

Interactive Location Mapping

Screenshot 2024-04-25 at 10 30 06 PM Screenshot 2024-04-25 at 10 30 17 PM

Interactive Review and Ratings:

make a review gif


Technology Stacks

Front End

Back end

Database

Cloud