如何使用Meteor公开RESTful Web服务 [英] How to expose a RESTful Web Service using Meteor
问题描述
您将如何使用Meteor创建一个宁静的Web服务.我想在Appcelerator中创建挂接到同一后端的应用.
How would you go about creating a restful web service using Meteor. I would like to create apps in Appcelerator that hook into the same backend.
流星能解决这个问题吗?
Can Meteor solve this problem?
推荐答案
我想您可能可以使用Meteor创建RESTful服务,但这并不是该框架的真正目的-Meteor的主要好处之一是紧密客户端和服务器之间的交互,并且Web服务没有客户端.我建议您考虑自己在node.js中编写Web服务后端,或者类似 https://github.com/intridea/grape (如果您喜欢Ruby).
I suppose you probably could create a RESTful service using Meteor, but it's not really what the framework is intended for -- one of the main benefits of Meteor is tight interaction between the client and the server, and a web service doesn't have a client side. I'd recommend looking into either writing a web service back end in node.js on its own or something like https://github.com/intridea/grape if you like Ruby.
这篇关于如何使用Meteor公开RESTful Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!