This project serves as a HTML JSON frontend for the nebrija RAE library.
It is a simple Sinatra app that serves a JSON as well as a -hopefully- nice webpage, and it's being run on Heroku.
Here is how it looks when a word is searched:
'/'
serves the webpage. The frontend is made with Bootstrap Zepto.js. The JSON is requested using Ajax.api/word/:word
is where the API is hosted. The responses are the ones from nebrija but adding the current nebrija version.
# clone the repo
$ git clone https://github.com/javierhonduco/dulcinea && cd dulcinea
# install the dependencies
$ bundle install
# run a server that reloads automatically
$ script/serve
# or the server run by Heroku (unicorn)
$ bundle exec foreman start