404 not found Error in AGEDB-INC/Cloud-Express signup and signup

huangapple go评论69阅读模式
英文:

404 not found Error in AGEDB-INC/Cloud-Express signup and signup

问题

我在我的系统上运行AGEDB-INC/Cloud-Express项目。

我在根目录下使用以下命令安装了必要的依赖项

npm run setup

使用Node版本20.3.1

然后在Node版本14.16.0上使用以下命令运行项目

npm start

项目正常运行,但最初出现了错误:ERR_CONNECTION_REFUSED

这是因为前端请求端口4000,而后端运行在端口3001上,我解决了这个问题,但现在出现了新错误:404 Not Found

我认为这是路由问题,但无法解决它

404 not found Error in AGEDB-INC/Cloud-Express signup and signup

英文:

I'm running the the AGEDB-INC/Cloud-Express Project on my system.

I installed the necessary dependencies using the following command in root folder

> npm run setup

using node version 20.3.1

and then run the project in node version 14.16.0 using the following command

> npm start

the project is running fine but there was initially an error: ERR_CONNECTION_REFUSED

it was due to front-end was requesting on port 4000 and the backend was running on port 3001, I resolved this issue, but now a new error appears: 404 not Found

I think it issue with routes but unable to resolve it

404 not found Error in AGEDB-INC/Cloud-Express signup and signup

答案1

得分: 1

连接被拒绝的错误表示后端MongoDB服务器未运行。
如果您的.env设置中已经有有效的环境变量(注意:请参考cloud-express/backend/readme文件),然后打开一个新终端并运行:

cd backend
node index
英文:

Connection refused error is an indication that the backend MongoDB server is not running.
If you already have a valid environment variables in your .env setup, (note: refer to the cloud-express/backend/readme file), then open a new terminal and run:

cd backend 
node index

答案2

得分: 1

检查您是否实际运行了MongoDB。如果您也可以验证是否已正确设置环境变量,那将是很好的。

英文:

Check if you actually have your MongoDB running. It would be good if you also verify whether you have set up the environment variables correctly.

答案3

得分: 1

在cloudexpress中,您有前端和后端,需要分别运行它们。

以下是命令:

前端:

npm run start

后端: 在另一个终端中。

cd backend
node index

或者

cd backend
node index.js

请确保有活动的互联网连接,因为对于登录/注册,您将与托管的mongodb进行通信。

英文:

In cloudexpress you have frontend & backend and you need to run them individually.

Here are the commands:

Frontend:

npm run start

Backend: In other terminal.

cd backend
node index

or

cd backend
node index.js

Make sure to have active internet connection, because for login/signup you will be communicating with hosted mongodb.

huangapple
  • 本文由 发表于 2023年7月28日 02:17:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/76782459.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定