Desktop applications with Meteor.js

2019-01-30 17:07发布

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?

2条回答
干净又极端
2楼-- · 2019-01-30 17:09

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.

查看更多
forever°为你锁心
3楼-- · 2019-01-30 17:22

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

查看更多
登录 后发表回答