Skip to content

javierhonduco/dulcinea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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