A nebrija frontend + api.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
script
views
.gitignore
.ruby-version
Gemfile
Gemfile.lock
LICENSE
Procfile
README.md
app.rb
config.ru

README.md

Dulcinea: a nebrija frontend + api

Code Climate

Description

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: image

Routes:

  • '/' 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.

Running locally

# 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