是否有可能在家里的开发笔记本上运行Express/NodeJS/Neo4J堆栈,比如在port 3000上运行,然后在iPhone/iPad?上运行开发中的应用程序连接到它?
我认为,只要应用程序知道家庭网络中要连接的IP地址和端口号,数据交换就会通过RESTful服务进行,所以一切都应该正常进行。但是,由于我对iOS编程一无所知,也许我不知道在设备上运行开发模式的应用程序在应用程序商店实际被提供之前所受到的限制。
换句话说,我是否需要一个开发服务器来运行用于Express/NodeJS/Neo4J开发的iOS堆栈,还是在家庭网络中工作还可以呢?
发布于 2014-01-06 09:46:40
是的,您可以从开发机器上运行应用程序的后端服务器。我一直都这么做。正如您所指出的,您只需要知道服务器的IP地址和端口。只要设备和服务器在同一个网络上,你就会没事的。您可以使用模拟器和实际设备访问在开发计算机上运行的服务器。
发布于 2022-11-09 01:35:59
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] phonesoftwarehttps://stackoverflow.com/questions/20946322
复制相似问题