GithubHelp home page GithubHelp logo

lostofctrl / meteor-remote-ddp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gwendall/meteor-remote-ddp

0.0 2.0 0.0 128 KB

Get your Meteor client point to any DDP server

JavaScript 100.00%

meteor-remote-ddp's Introduction

Meteor Remote DDP

When building apps with decoupled client-code and server-code (say mobile apps, for example), your client tries to connect to its own DDP server by default. And performs all the Meteor methods (Meteor.call, Meteor.subscribe, etc.) to this endpoint.
This package just allows you to specify a remote DDP server for all of that.

Installation

meteor add gwendall:remote-ddp

How-to

RemoteDDP(url)

RemoteDDP("http://localhost:5000");
// You can now call any Meteor method (call, subscribe, etc.) and it will all point to this server

Notes

  • Does not work in Cordova. To access a different server, use the --mobile-server flag instead.
  • Inspired by @jamgold's solution.

To do

  • Implement patch for OAUTH login (right now, accounts-facebook, accounts-twitter, etc point to client's server by default)
  • Maybe monkey-patch Mongo.Collection so that it automatically picks the new Meteor.connection

meteor-remote-ddp's People

Contributors

gwendall avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.