Skip to content

joakin/loot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

loot

A simple Node.js service that aggressively transforms RESTBase content for consumption by lightweight web apps.

Project unmaintained

Frozen/Deprecated

This server is not used any more, refer to the following links to an open source more production ready service:

Improvements to be done

  • Fix space usage
    • Evict previous cache revisions when getting a new one
    • Gracefully avoid cache when ENOSPC and log errors
    • Make the cache LRU and implement periodic eviction

Endpoints

Api

  • /slim/[title]
  • /slim/lead/[title]

Response

The /slim/[title] and /slim/lead/[title] endpoints respond with JSON in the following form:

{
  "sections": [
    {
      "title": "",
      "content": "<p>This is the lead section</p>"
    },
    {
      "title": "First section",
      "content": "<p>This is the first section</p>"
    }
  ]
}

Dev

  • npm install to get the dependencies.
  • npm start to run the server in development.

About

Backend server for mobile restbase html

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published