Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app/readabilityScore
config
public/test_images
.buildpacks
.env
.gitignore
LICENSE
README.md
bower.json
package.json
server.js

README.md

readability

This is an app built for the Blueprint Hackathon 2014: Save the Day Code for Good bp

Authors

About

This code is the backend to Helen Weng's Readability repo ios App.

API

  • URL
http://readabilityscore.herokuapp.com/score/url
{
    link: http://www.nytimes.com/article
}
curl -X POST -H "Content-Type: application/json" -d '{"link": "http://www.nytimes.com/2014/03/10/world/asia/malaysia-airlines-flight.html?hp"}' "http://readabilityscore.herokuapp.com/score/url"
  • Image
http://readabilityscore.herokuapp.com/score/image
{
    base64: ALKDENASdlksafiensdfasdflk...
}
curl -X POST -H "Content-Type: application/json" -d '{"base64": "/9j/4AAQSkZJRgABAQEASABIAAD/4gxYSUNDX1BST0ZJTEUA..."}' "http://readabilityscore.herokuapp.com/score/image"

Dependencies

Running

$ npm install
$ nodemon server.js
Something went wrong with that request. Please try again.