How can one design/write an efficient rest API with meteor, that can also be used by mobile apps? Can mobile apps also take advantage of meteors reactive programming?
With so many programming choices currently available, it seems wasteful to repeat everything(code, api) for different platforms, instead of having a good practical solution.
Your post is really two different questions.
Yes, there is a way to attach REST endpoints to Meteor. You just write them as normal Node.js code using connect or Express and attach them to the WebApp.connectHandlers
after pulling in the webapp
package (meteor add webapp
).
Mobile apps can take advantage of reactivity by being implemented in Javascript. You can either access your app directly from a mobile browser, or just use PhoneGap/Cordova to wrap it in a "native" app container. As phones become more popular, this will probably be the default way to deploy apps versus writing many copies of the same app in different codebases.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments