Install

Clone the repository

git clone https://github.com/mukeshmahara/Quotes-API.git
cd Quotes-API

Check your Ruby version

ruby -v

The ouput should start with something like ruby 3.1.2 If not, install the right ruby version using rvm (it could take a while):

rvm install ruby-3.1.2

Install dependencies

Using Bundler and Yarn:

bundle && yarn

Serve

rails s

Demo

get HTML web page as response

get json as response

get json xml response