Meteor.js and API Applications

I am trying to work if Meteor.js is suitable for the application that I would like to create.

The application will be entirely web-based, but will require me to implement a RESTful API that provides some of its features.

Is this possible with Meteor.js or is something like Express / Sinatra best suited?

+4
source share
3 answers

This can now be done with Meteor using the meteor-collectionapi Atmospheric package. See Also Is Meteor an option if I need an additional REST API? .

+6
source

It really depends on where your comfort levels are with what you want to use as a frame.

If you are thinking about using Meteor, you can create a REST api using the package in the atmosphere repository called Meteor Router . Meteor Router allows you to create server-side routes that you can implement REST requests from the end of the server.

In addition to REST, meteor also has another interface called DDP (Distributed Data Protocol), which is similar to REST, but tries to keep an open socket at any time so that data can be pushed anyway.

Currently there are DDP clients for Objective-C, NodeJS, Python, .NET, and Ruby.

+1
source

This is completely doable, I just did it, and I used the HTTP.publish library, which elegantly adds HTTP along with DDP as a protocol for communicating with the database.

+1
source

Source: https://habr.com/ru/post/1481547/


All Articles