Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Desktop applications with Meteor.js

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?

like image 287
Matt Avatar asked Jan 29 '15 04:01

Matt


2 Answers

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.

like image 64
Ana Betts Avatar answered Sep 23 '22 20:09

Ana Betts


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

like image 27
Sercan Ozdemir Avatar answered Sep 25 '22 20:09

Sercan Ozdemir