GithubHelp home page GithubHelp logo

aduth / api.libroipsum.com Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 160 KB

API endpoint for LibroIpsum phrase generation

Home Page: http://api.libroipsum.com/

License: MIT License

CoffeeScript 60.15% JavaScript 39.85%

api.libroipsum.com's Introduction

api.libroipsum.com

Source for LibroIpsum public API. Powers LibroIpsum.com. Supports .txt, .json, .jsonp, and .xml content-type rendering.

Read more about LibroIpsum

Example API requests: Cicero, Plato's Republic, Obama-Romney Debates (2012), Huckleberry Finn

Installation

To use the source locally, you must first have Node.js installed (installer). Then, in your terminal, clone the repository and install dependencies:

git clone git://github.com/aduth/api.libroipsum.com.git
cd api.libroipsum.com
npm install

Start the server with Node.js:

node index.js

To make use of the API, there must be source texts available in the sources/ directory. These sources are automatically loaded and seeded (cached) by the server. For example, if sources/books/example.txt exists, generated LibroIpsum text can be accessed at http://localhost:8080/books/example.json.

To make changes, modify .coffee source files in the src/ directory. A Gruntfile exists to easily watch and compile CoffeeScript to JavaScript:

npm install -g grunt-cli # If not already installed
grunt

License

Copyright (c) 2013 Andrew Duthie

Released under the MIT License (see LICENSE.txt)

api.libroipsum.com's People

Contributors

aduth avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.