Skip to content

Automattic/mydb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

411 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is no longer maintained

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

  • You can either:
    • Start Redis: redis-server
    • Start MongoDB: mongod
  • Or:
    • Go to test/
    • docker-compose up
  • Run the tests: make test

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors