带有节点Webkit的Demeteorizer [英] Demeteorizer with node-webkit

查看:78
本文介绍了带有节点Webkit的Demeteorizer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用流星制作桌面应用程序.

I'm trying to make a desktop application using meteor.

我可以使用Demeteorizer将其转换为标准的node.js应用程序,然后使用ndoe-webkit将其转换为桌面应用程序吗?我的问题是,mongodb数据库仍将如何工作?

Can I use Demeteorizer to convert it to a standard node.js app, then use ndoe-webkit to turn it into a desktop app? My problem with this is, how would the mongodb database still work?

如果这不是有效的选项,还有其他方法吗?

If this is not a valid option, is there any other way to do this?

推荐答案

有趣的想法. Demeteorizer将帮助您创建一个可以安装在任何地方的捆绑软件.然后,您将可以在台式计算机上使用它.

Interesting idea. Demeteorizer will help you create a bundle that can be installed anywhere. You would then be able to use this on a desktop computer.

使用node-webkit时需要牢记一些事情

There are a few things you need to keep in mind when using node-webkit

1)您需要加载正在运行服务器的URL,这将为您提供最终的Meteor应用程序.这与node-webkit并不完全相同.

1) You need to load the URL that is running the server, which is what gives your the resulting Meteor application. This is not strictly the same as node-webkit.

您可以做的是使用/static中的html文件来执行此操作,因为它们可以与node-webkit一起使用.然后,您可以将流星服务器放置在其他位置.该应用程序将立即在桌面环境上加载.尽管它的DDP部分将连接到远程服务器以存储/检索数据.

What you can do is use the html files in /static to do this, since they can be used with node-webkit. You can then have your meteor server somewhere else. The app would load on the desktop environment instantly. Though the DDP portion of it would connect to the remote server to store/retrieve data.

(有一个名为popcorn-movies的应用程序,它使用类似的技术.他们将服务器(而非流星)放置在某处,并使用静态文件连接到该服务器.)

(There was an app called popcorn-movies which used a similar technique. They had their server (not meteor) somewhere and used the static files to connect to it).

2)如果您考虑在本地而非远程运行服务器,则需要在本地运行MongoDB.另外,您将需要运行该应用程序(它将与node-webkit分开).您还可以修改流星散发的光束

2) If you consider running the server locally instead of remotely, you would need a MongoDB locally. Additionally you would need to run the app (which would be seperate from node-webkit). You could also modify the bundle meteor gives out

这篇关于带有节点Webkit的Demeteorizer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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