Make Meteor apps without a server?

The default meteor app is a server+client setup. Is it possible to make client-only apps, that don’t require a server connection?

I’m thinking this would be useful for certain use cases, for example deploying a Cordova application that only needs access to some Android/iOS APIs, but does not need a network.

In such a case, the client code would need to be shipped locally with the application, not served from a server.

It’d be super cool to be able to take advantage of Meteor’s build system, build plugins, and Cordova features, without requiring a server.

Is this possible with Meteor?

As an example, at the moment I’d like to make an Android app that will connect to a nearby bluetooth device, with no network connection (other than for downloading the app from Play Store). The app would obviously need to ship with the client code.

You certainly can do this. Simply build a meteor app, and never call or Meteor.subscribe. You’d still technically have a server build, it would just be empty and wouldn’t require an actual server to run it.

You;d need to be careful of which packages you use, in case they assume a server connection

@znewsham Thanks! But, if I want to deploy to Android, using the steps outlined in the docs, will it work? Or will it expect for the client code to be delivered by the server?

I’ve honestly never tried this. Should be fairly easy to test though. I don’t think it will work in dev mode (e.g., meteor android) but if you build for android, and use adb to install the apk directly to the phone, I can’t imagine why it wouldn’t work.