Giter Site home page Giter Site logo

kala's Introduction

Kala

Simple read-only REST API for mongoDB.

FAQs

What is this?

A very simple way of sticking a read only REST API on a single mongoDB database. Useful, for example, for exposing some data where you want to manage that data through a separate interface or background process.

How do I use it?

It's just a bottle app, so you can deploy it the same way you would any bottle app. You'll also need to set the mongoDB connection URI and the name of the target database in the configuration. An example configuration is included in the repository. It is also possible to use environment variables to configure Kala, the key variables are KALA_MONGODB_URI, KALA_MONGODB_DB and KALA_CONFIGFILE. If an environment variable is present its value will be used over any supplied in the configuration file.

What if I want to use Sentry for exceptions?

Feel free, simply set in the configuration (either via the KALA_SENTRY_DSN environment variable, or the sentry.dsn option in the config file) and then install the raven client library by whichever means you desire.

Why wouldn't I just use SleepyMongoose? (https://github.com/10gen-labs/sleepy.mongoose/wiki)

You probably should, if you want a REST API to enable full CRUD against a mongoDB server. As far as I can tell there's no way to lock sleepy.mongoose down so as to only allow reads and only allow a particular database, which is what this is designed to do.

Why didn't you fork SleepyMongoose to add that feature then?

I could have done, but that seemed like considerably more effort than the tiny bottle app here.

Why is it called Kala?

Dispatch war rocket 'Ajax' to bring back his body!

kala's People

Contributors

pjetherton avatar damoxc avatar pje-cloudbuy avatar charlotteseabrook avatar jmez avatar

Watchers

James Cloos 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.