简体   繁体   中英

Is it possible to use Nodejs in mobile application?

I already did some applications in computer using Nodejs and Mongodb. Is it possible for me to use this projects and run in mobile platforms. Or should I write all the project in Android starting from the scratch?

This question is kind of vague. A mobile application would be written natively (iOS, Android, maybe Xamarin or Unity for cross-platform), or could be written as a web app (a HTML5 web page), and turned into a "mobile app" via PhoneGap, Cordova, Crosswalk or just opening a web browser.

As far as running nodejs and mongo natively on the device, you need to explain more. Those are server-side technologies and I'm not sure why you'd want them on a mobile device. So the answer is "no" without it just being some tech experiment.

Can mobile apps talk to and utilize your Node server application? Absolutely!

Any apis specific to these platforms won't work within mobile application. There is plugin on-boards very limited NodeJS apis by translating them to their native equivalents. For Example : NativeScript-Nodeify

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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