如何使用 Meteor 公开 RESTful Web 服务 [英] How to expose a RESTful Web Service using Meteor

查看:39
本文介绍了如何使用 Meteor 公开 RESTful Web 服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您将如何使用 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.

Meteor 能解决这个问题吗?

Can Meteor solve this problem?

推荐答案

我想你可能可以使用 Meteor 创建一个 RESTful 服务,但这并不是框架的真正目的——Meteor 的主要好处之一是紧凑客户端和服务器之间的交互,Web 服务没有客户端.我建议研究一下自己在 node.js 中编写 Web 服务后端或类似 https://github.com/inridea/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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆