Thursday, April 14, 2016

MongoDB installation

MongoDB -
=========
http://www.mongodb.org/

SleepyMongoose Installation:
============================

http://www.kchodorow.com/blog/2010/02/22/sleepy-mongoose-a-mongodb-rest-interface/comment-page-2/

Download Setuptools:
====================

http://api.mongodb.org/python/1.4%2B/installation.html

https://pypi.python.org/packages/source/s/setuptools/setuptools-1.0.tar.gz

Install the Python driver:
==========================

$ easy_install pymongo

Download Sleepy.Mongoose:
=========================

https://github.com/10gen-labs/sleepy.mongoose/archive/master.zip
From the mongoose directory, run:
=================================

$ python httpd.py

You’ll see something that looks like:

=================================
|      MongoDB REST Server      |
=================================

listening for connections on http://localhost:27080

Using Sleepy.Mongoose

First, we’re just going to ping Sleepy.Mongoose to make sure it’s awake. You can use curl:

$ curl 'http://localhost:27080/_hello'

and it’ll send back a Star Wars quote

No comments:

Post a Comment