Demeteorizer with node-webkit
Asked Answered
A

1

2

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

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?

Apollinaire answered 28/3, 2014 at 3:52 Comment(2)
Environment var MONGO_URL is used to tell the demeteorized app how to connect to the mongodb, which can be externally hosted. See blog.modulus.io/demeteorizer -- I have no idea if demeteorizer can be combined with node-webkit.Lysozyme
@Lysozyme Do you know how to allocate the environment var in this case? It would be helpful thanks.Complainant
S
2

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.

There are a few things you need to keep in mind when using 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.

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.

(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) 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

Skip answered 28/3, 2014 at 7:30 Comment(1)
would it be too much to ask for an example? Will much appreciate it Thanks :)Complainant

© 2022 - 2024 — McMap. All rights reserved.