简体   繁体   English

我可以仅将meteor.js用于后端

[英]Can I use meteor.js just for back end

I have to build a mobile app that's needs a high level of reactivity. 我必须构建一个需要高反应性的移动应用程序。 I thought to use meteor.js just for my back end and build the app using native technologies. 我认为仅将meteor.js用于后端,并使用本机技术构建应用程序。 Can this work? 能行吗?

Yes it can, but you need to evaluate how reliable it will be. 是的,可以,但是您需要评估它的可靠性。

If you're thinking about using JavaScript to write your native app (eg React Native) then you have good NPM packages that can help you with this task. 如果您正在考虑使用JavaScript编写本地应用程序(例如React Native),那么您将拥有很好的NPM软件包,可以帮助您完成此任务。 For example: https://blog.meteor.com/leverage-the-power-of-meteor-with-any-client-side-framework-bfb909141008 例如: https : //blog.meteor.com/leverage-the-power-of-meteor-with-any-client-side-framework-bfb909141008

But if you're thinking about writing completely native code for iOS and Android and still have a DDP connection to use everything from Meteor you'll need to find a third part library written for your platform. 但是,如果您正在考虑为iOS和Android编写完全本机代码,并且仍然具有DDP连接以使用Meteor的所有功能,则需要找到为您的平台编写的第三方库。 I've tried this in the past and had a bad experience. 我过去曾尝试过这种方法,但经验很差。 Once Meteor started getting updates the library broke and my app would not work anymore. 一旦Meteor开始获取更新,该库就会损坏,我的应用程序将无法再使用。 This means you would need to find a well maintained project that is always up to date. 这意味着您需要找到一个始终保持最新状态的维护良好的项目。

I hope I could help a little. 我希望我能有所帮助。 It's not a simple decision, but if you research hard enough you can find out what's the best way to do it. 这不是一个简单的决定,但是,如果您进行了足够的研究,您会发现什么是最好的方法。

如果您想要一个具有高反应性和高性能的应用程序,我建议您放弃它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM