using Ionic 2 CLI with meteor backend

361 views Asked by At

Is there a way of using Ionic 2 CLI with meteor's server side? I Ionic 1 we could use the meteor-client-side, any suggestion how to use it now ? Thanks in advance!

1

There are 1 answers

3
Rafael Ubaldo On

I've been running though the rigor of researching the same possibility, and I've come to conclusion, one would not want.

You've probably seen this this tutorial already.

Using that example, I had attempted to modify the Meteor CLI directly without success. I've decided instead to drive my build process from Gulp wrapping both Ionic CLI and Meteor CLI behind tasks. The mobile/web apps are separate from the Meteor server (as in the example). I've also abstracted the Meteor client only library behind an Angular/Redux service to give me the flexibility to even replace Meteor (with say something like Phoenix Framework or RethinkDB), and moved that service into an NPM module.

Decoupling the client(s) and server implementation and using your own orchestrating build process may also give the added benefit to support more client profiles beyond what is supported by either CLI dependently as we have discovered.