相当于sinatra的node-webkit? [英] node-webkit equivalent for sinatra?

查看:108
本文介绍了相当于sinatra的node-webkit?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在考虑学习如何基于Web技术制作简单的Mac OS X应用程序,并且遇到了node-webkit,这似乎很引人注目.但是,我最近投资学习了Sinatra/Ruby的基础知识,我想继续学习下去.

I've been thinking about learning how to make simple Mac OS X applications based on web-technology and I came across node-webkit which seems compelling. However, I've recently invested in learning the basics of Sinatra/Ruby and I wanted to stay on that course.

使用Sinatra的开发人员是否有"node-webkit等效项"?或者,是否有推荐的方法使用Sinatra框架(或Ruby)来构建本质上是Web包装程序的OS X应用程序?

Is there a "node-webkit equivalent" for developers who use Sinatra? Or, is there a recommended way to use the Sinatra framework (or Ruby) to build OS X apps that are essentially web wrappers?

推荐答案

Sinatra是服务器端框架. 与客户端的Node-webkit相反.

Sinatra is a server-side framework. Contrary to Node-webkit which is on client side.

如果您需要与服务器交互,则仍然可以在服务器上使用sinatra(以及node.js,php等).

If you need to interact with a server, you can still use sinatra (as well as node.js, php, ...) on your server.

但是,如果您要在node.js上寻找类似sinatra的框架,则应该研究Express.js: https ://npmjs.org/package/express

But if you are looking for a framework like sinatra on node.js, you should look into Express.js : https://npmjs.org/package/express

这篇关于相当于sinatra的node-webkit?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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