Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.17 KB

README.md

File metadata and controls

28 lines (21 loc) · 1.17 KB

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