This is the source code for Rate Your Landlord web application with React front-end and Rails back-end.
"Rate This Rental" website, stands as a community-driven platform designed to empower customers in sharing their experiences with rental properties. Through this website, users can contribute reviews anonymously, offering valuable insights. By enabling individuals to rate their landlords, we aim to foster transparency and accountability within the renting ecosystem. This platform serves as a tool, empowering the community, guiding others in making informed decisions about their arrangements, and ultimately fostering better business relationships.
- ReactJS
- Ruby on Rails
- Install node / npm
- Install PostgreSQL 16.1, run a PostgreSQL server and point to port 5432
- Install Ruby 3.2.2 and Rails 7.1.2
- In the client directory:
# Go to rate-landlord cd rate-landlord # install node packages *npm install --force is suggested* npm install @material-ui/[email protected] npm install @testing-library/[email protected] npm install @testing-library/[email protected] npm install @testing-library/[email protected] npm install @ubilabs/[email protected] npm install [email protected] npm install [email protected] npm install [email protected] npm install [email protected] npm install [email protected] npm install [email protected] npm install [email protected] npm install [email protected] npm install [email protected] npm install [email protected] npm install [email protected] npm install [email protected] # start code npm start # visit localhost:3000 on browser
- In the server directory:
# Go to rate-landlord-api cd rate-landlord-api # Install gem dependencies bundle # Create Postgres DB and migrate the schema rails db:create rails db:migrate # Setup mailer export SENDMAIL_PASSWORD=wbqsqjtqlfwdcldf export [email protected] export MAIL_HOST=localhost:3001 # start backend rails s # visit localhost:3001 on browser
-
There is still some race conditions error in rendering the app. Try reloading the page if encounter such errors or wait for the page to reload itself.
-
Please confirm the email in your inbox after you sign up to make your account work
-
The search bar is slow, please be patient.
-
For this version you need to choose the option "become a landlord" to be able to open the submitting a review option.
-
All images and figures are obtained from the Canva images and graphics library
-
ChatGPT was used to help with adding comments to the code or formatting the order (and centering divs ofc :) )