A transparent mongo db restful api in Node.js
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
img
node_modules
scripts
.gitignore
README.md
WinStartMongo.bat
home.html
package.json
server.js

README.md

mongo-trapi

A transparent mongo db restful api in for Node.js

installation

You need Node.js installed on your machine to run this node_module http://nodejs.org/#download The source contains everything else you need to get started, including mongodb.

npm install mongo-trapi **not yet published

You also need mongodb: http://www.mongodb.org/downloads

Once Node.js is installed you should be able to run mongo-trapi and connect to a mongodb instance

quickstart

mongodb

this project requires a local mongodb connection, the batch file expects that mongodb be installed in a folder in the root called mongodb create a folder in the working directory called 'data'

*Windows: run the batch script 'WinStartMongo.bat' that should start mongo and create a database for you in the /data folder

mongo-trapi

run the batch script 'run node server.bat'

If a localhost mongo server is running, mongo-trapi will attempt to connect to a database called seven20.

license

The MIT License (MIT) Copyright (c) 2012 Ken Eucker

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.