HomeSuite is a CLI application that assists users in their home purchasing journey. The user starts out by providing their name and is soon prompted to give their preferences regarding their home purchase. Do they want a 2 bed 1 bath in Denver? Or do they prefer a 4 bed 3 bath in Boulder? View and view again until they decide on the house that is best.
HomeSuite Virtual Realtor Walkthrough
Ruby - version 2.6.1
ActiveRecord - version 6.0.3.2
SQLite3 - version 3.16
To run this project, install it locally by cloning the GitHub repository and type:
ruby runner.rb
def welcome_user
box = TTY::Box.frame " HOMESUITE ", "Welcome to Virtual Realtor!", padding: 1, align: :center, border: :thick
puts box
prompt = TTY::Prompt.new
user_name = prompt.ask("May I get your name?")
answer = Client.pluck(:name).include? user_name
if answer == false
@user = Client.create(name: user_name)
else
@user = Client.find_by(name: user_name)
end
end
def houses_viewed
puts "You have viewed: "
@houses_viewed = @user.houses.map do |house|
puts house.address
house.address
# end.map do |house|
# house.address
end
end
- Select home preferences (bedrooms, bathrooms, etc.)
- Display the homes which match the user's preferences
- Allows the user to choose a house(s) to view
- Allows the user to buy a house based, overall deleting the bought house from the database
To-Do List:
- Add API functionality to pull in houses currently on the market
- Add details to homes viewed to allow for better knowledge of the home's features and history
Completed.
This app is built to carry out the CRUD framework
We created this app based on our own affinity for looking through home apps such as Realtor and Trulia. We wanted this app to be personalized and flexible unlike the apps out on the market so set on to build HomeSuite with that exact intention!
Created by Hailey Ringier and Nyaradzo Bere