Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

直接clone 代码启动,前端页面是出来了,但是后台请求没有成功啊 #49

Open
wcl-git opened this issue Feb 14, 2019 · 8 comments

Comments

@wcl-git
Copy link

wcl-git commented Feb 14, 2019

后台介绍感觉少了点啥

@wcl-git
Copy link
Author

wcl-git commented Feb 15, 2019

明白了,本地安装 mongodb 数据库,启动数据库就好了

@BruinK
Copy link

BruinK commented Mar 2, 2019

明白了,本地安装 mongodb 数据库,启动数据库就好了

你的成功了吗??? 我的链接了mongo,然后导入了开发数据,但是还是会报错,有一个请求失败了。求教怎么搞???

@wcl-git
Copy link
Author

wcl-git commented Mar 18, 2019

是不是你的mongo 数据库没有启动

@wcl-git
Copy link
Author

wcl-git commented Apr 30, 2019

代码没有改变的,知识你要启动mongodb,你可以照着mongo教程来,

@wcl-git
Copy link
Author

wcl-git commented May 21, 2019 via email

@hopepdm
Copy link

hopepdm commented Oct 30, 2019

安装mongodb并启动好之后,先启动后端服务(成功显示数据库链接成功)再启动前端服务就好了

@gordon518
Copy link

产生这个问题的原因是文档没有写好,按照文档操作会失败的。首先要说明开发环境,我的电脑是装了win7系统,然后装了node 8.10.0 64位版本(node-v8.10.0-x64.msi),MongoDb 3.6(文档里写用node 7.9和MongoDb 3.4估计也是可以的)。首先要导入数据库,初始数据库在文档里的"开发数据库"下面的连接(链接: https://pan.baidu.com/s/1c3aedw8 密码: 5ii1)。导入这个数据库后,先开一个Command窗口,使用cd命令转到项目目录,然后运行命令:npm run start-dev-api启动后台服务器。然后再开一个Command窗口,再使用cd命令转到项目目录,最后运行命令:npm run watch-client启动react应用服务。

文档里说用命令npm start,先启动react应用服务再启动后台服务器在Win7里是行不通的,这将导致react应用服务当机。

@hopepdm
Copy link

hopepdm commented Nov 12, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants