Desktop applications with Meteor.js

空扰寡人 提交于 2019-11-28 16:22:01

问题


The options I've found for creating desktop applications in HTML, CSS, and JavaScript are:

  1. Electron (formerly Atom-Shell)
  2. NW.js (formerly Node-Webkit)

However, there doesn't seem to be any clear implementation for using meteor.js with these.

NW.js

I've seen some other questions of people asking this, but no implementation. Can't even figure out by the answers what I should be trying to put together:

  1. Meteor leaderboard app on node-webkit
  2. Demeteorizer with node-webkit
  3. How can I start a Meteor instance before launching a node-webkit?

This guys actually got it running but doesn't say how: https://stackoverflow.com/questions/25508737/iron-router-routing-fails-on-reload-in-node-webkit

The idea proposed here is interesting—loading the desktop application completely from the web. However, I would like to allow my users to use the application offline.

Electron

There is an actual implementation, meteor-desktop-app, but it has no clear support for Windows. However, the atom-shell does support Windows just as NW.js does.


Has anyone figured out an implementation to allow meteor.js to operate as a desktop application?


回答1:


If you drop the code from meteor-desktop-app into Electron Starter, you'll get Windows + Mac + Linux for free, as well as a build system you can definitely use for Real Apps.




回答2:


Check out mongoclient's scaffold directory, it'll lead you to your electron app if you follow the steps from readme.



来源:https://stackoverflow.com/questions/28207124/desktop-applications-with-meteor-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!