Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

integrating meteor with ruby on rails

Our team has a very large RoR app in production already, but we're looking for a new workflow for the future. Since our team is made of mostly Rails devs and me (JavaScript), I've been looking into the idea of connection a Meteor app to a Rails API for the backend. I'm not too familiar with Meteor yet so I'm wondering if this is possible as of 0.6.5? Or if any Meteor devs see this, will it be possible in the current road map?

My current thoughts are to create collections using data from the Rails API and update the Rails records when the meteor collections are changed, so theoretically both databases will be updated while taking advantage of Meteor's client-side features. As I've said, I'm not too familiar with the specifics of Meteor yet so this may not work like I'm thinking.

Or maybe I can't use collections at all and have to manually create a minimongo using the API data and manually send back as it's updated?

This also brings the question of publishing and subscribing to the collections, which I'm not sure how that would work either.

Any help or enlightenment is appreciated.

like image 240
ZDixon Avatar asked Nov 27 '25 00:11

ZDixon


1 Answers

I wrote a DDP client gem that supports DDP 1.0. It's not finished yet, but the most common functionality already works: https://github.com/clemenshelm/metybur

like image 148
Clemens Helm Avatar answered Nov 28 '25 14:11

Clemens Helm