我使用mySql数据库创建了一个express.js后端,正如本系列教程first part here和second part here所建议的那样。然后,使用react-native,我尝试了一个简单的Get请求来从数据库的一个表中获取数据: <Button title='Test MySQL Connection' alert(response); .catch((error) => alert(&
我正在做一个web项目,它应该提供restful post service with react framework。 在互联网上有很多消费rest服务的例子。 但是,我想提供restful服务。我认为这是不可能的。 2-从express提供服务,并通过代理https://www.youtube.com/watch?我的express服务器如下所示。const express = require('exp