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



是否可以在家中的开发笔记本电脑上运行Express/NodeJS/Neo4J堆栈,例如在port 3000上运行,并从iPhone/iPad?上运行的开发中的应用程序连接到它

我在想,由于只要应用程序知道要在家庭网络中连接的 IP 地址和端口号,数据交换就会通过 RESTful 服务进行,因此事情应该可以正常工作。但是由于我对iOS编程的知识为零,也许我不知道在应用程序商店实际提供之前,对在设备上运行的开发模式的应用程序施加的限制。

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

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

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

最新更新