The setups steps expect following tools installed on the system.
- Ruby 3.1.0
- Rails 7.0.3
git clone git@github.com:zmasterar/easy_broker.git
And cd
into the directory
cd easy_broker
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
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
Here are some screenshots of the site
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.