zmasterar / easy_broker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

Prerequisites

The setups steps expect following tools installed on the system.

  • Ruby 3.1.0
  • Rails 7.0.3

1. Clone the repository

git clone git@github.com:zmasterar/easy_broker.git

And cd into the directory

cd easy_broker

2. Add the EasyBroker API key

bundle exec rails credentials:edit

Add a line with a easy_broker_api_key key like this:

easy_broker_api_key: your_valid_easy_broker_api_key

3. Start the Rails server

You can start the rails server using the command given below.

bundle exec rails s

And now you can visit the site with the URL http://localhost:3000

Website screenshot samples

Here are some screenshots of the site

Main Page Main Page
Property page and contact form Property page and contact form
Contact form submitted correctly Contact form submitted correctly
Contact form submitted with errors Contact form submitted with errors

Notes

As the design wasn't this project focus, I decided to add Bootstrap via its CDN and added some basic styling with it.

I also made a really basic previous and next buttons in the main page, but I think it's better to use a more robust way to do it. I decided to use Pagy as an alternative and pushed it to the pagy branch.

I think my code could improve in the abstraction of the class used to connect with the EasyBroker API, and have a better structure for better scalability (make different classes for each endpoint, for example).

The hardest thing for me when building websites is when it comes to testing, not as much in the how but in the what to test, so that's something I look forwards to improve.

About


Languages

Language:Ruby 68.7%Language:HTML 26.0%Language:JavaScript 3.2%Language:CSS 2.0%