InquisitiveGirl
InquisitiveGirl

Reputation: 687

Integrating ExpressJS and MeteorJS

I have an Epress JS rest api that posts values to the mongoDB. I'm wondering if it is possible to integrate Meteor JS to retrieve those values from the MongoDB. Any thoughts would be appreciated.

Thanks

Upvotes: 1

Views: 83

Answers (2)

Mikkel
Mikkel

Reputation: 7777

Meteor's data layer connects to MongoDB, use a normal publish on the server and subscribe from the client. https://www.meteor.com/tutorials/blaze/collections

It won't matter that your Express app updates the db independently - Meteor's reactivity will pick up the changes as they happen.

Upvotes: 1

Shubham
Shubham

Reputation: 1201

In meteor for creating REST-API the first choice would be a publish-subscribe call but if you need to make REST-API beyond that you can use 'Restivus' high-level API.

Here is the link

Upvotes: 0

Related Questions