Public | Automated Build

Last pushed: 2 years ago
Short Description The service that manages the docs!
Full Description

This is docservice "croc.doc", manages named docs for on a mongo

Run it

After all of the pip install -r requirements.txt ordeal (you might need
some dev packages as well to compile some pips), do this:


This will run the production version of the service so you don't accidentally
run development code on a production machine. To debug, define a DEBUG=1
environment variable. Or:

DEBUG=1 python

Will automatically connect to host 'mongo' for mongo stuff (use with Docker).
Change this with env var CONNECTION_URL=mongodb://yourhost.

Web interface

/ just says hello
/doc POST: post new doc, returns json
/doc/<name> GET: get a doc, returns json

POST: Should be Content-Type: application/json

"status": ["ok", "error", "hi"],
"doc": <the doc itself, when GETing>,
"name": <name of the doc>,
"message": <some greeting, optional>

Docker Pull Command
Source Repository