mydb

3.2.0 • Public • Published

mydb

MyDB realtime server.

Example

var http = require('http').Server();
var mydb = require('mydb')(http);
http.listen(3000);

That's all there's to it. Point your mydb-client to it, and hook up MongoDB events through mydb-driver or by setting up mydb-tail.

To expose documents with express that you can request with MyDB on the frontend, use mydb-expose.

API

mydb(server)

Attaches the mydb server to a http.Server.

Testing

In order to run the tests

  • Start Redis: redis-server
  • Start MongoDB: mongod
  • Run the tests: make test

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.2.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.2.0
    2
  • 3.1.1
    1

Package Sidebar

Install

npm i mydb

Weekly Downloads

3

Version

3.2.0

License

none

Last publish

Collaborators

  • rauchg
  • tootallnate