首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用本地Express/NodeJS/Neo4J服务器堆栈开发iOS应用程序?

使用本地Express/NodeJS/Neo4J服务器堆栈开发iOS应用程序?
EN

Stack Overflow用户
提问于 2014-01-06 09:00:53
回答 2查看 411关注 0票数 0

是否有可能在家里的开发笔记本上运行Express/NodeJS/Neo4J堆栈,比如在port 3000上运行,然后在iPhone/iPad?上运行开发中的应用程序连接到它?

我认为,只要应用程序知道家庭网络中要连接的IP地址和端口号,数据交换就会通过RESTful服务进行,所以一切都应该正常进行。但是,由于我对iOS编程一无所知,也许我不知道在设备上运行开发模式的应用程序在应用程序商店实际被提供之前所受到的限制。

换句话说,我是否需要一个开发服务器来运行用于Express/NodeJS/Neo4J开发的iOS堆栈,还是在家庭网络中工作还可以呢?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-01-06 09:46:40

是的,您可以从开发机器上运行应用程序的后端服务器。我一直都这么做。正如您所指出的,您只需要知道服务器的IP地址和端口。只要设备和服务器在同一个网络上,你就会没事的。您可以使用模拟器和实际设备访问在开发计算机上运行的服务器。

票数 1
EN

Stack Overflow用户

发布于 2022-11-09 01:35:59

代码语言:javascript
复制
UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"Server"
                                                                   message:@"Choose server to point to"
                                                            preferredStyle:UIAlertControllerStyleActionSheet];
    UIAlertAction *button1 = [UIAlertAction actionWithTitle:@"Development" style:UIAlertActionStyleDefault
                                                    handler:^(UIAlertAction * action) {
                                                        //code to run once button is pressed
                                                    }];
    UIAlertAction *button2 = [UIAlertAction actionWithTitle:@"Production" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
        //code to run once button is pressed
    }];
    [alert addAction:button1];
    [alert addAction:button2];
    UIPopoverPresentationController *popPresenter = [alert popoverPresentationController];
    popPresenter.sourceView = self.view;
    //To present the actionsheet the bottom of screen
    popPresenter.sourceRect = CGRectMake(self.createBtn.frame.origin.x, self.view.frame.size.height, self.createBtn.frame.size.width, self.createBtn.frame.size.height stack-exchange-apk_202008 software apkarchive Stack Exchange APK installer Internet Archive HTML5 Uploader 1.6.4 Android Stack Exchange APK installer franck.Dernoncourt@gmail.com 2020-08-28 17:18:14 2020-08-28 17:18:14 [curator]validator@archive.org[/curator][date]20200828172231[/date][comment]checked for malware[/comment] phonesoftware
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20946322

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档