Node.js Backened Deploying Error(Cannot GET / 404 not found)

I am trying to deploy a full stack MEAN application on render. I was able to get the front end application working through the static site. However, the backened application is giving me an error even though it was successfully deployed.

Backend Settings:
Build Command: npm install
Start Command: node index.js

Frontend Settings:
Build Command: npm run build
Start Command: ng build

Frontend code is working properly. while trying to access backend api from deployed code it gives 404 not found, but backend code is deployed successfully.

something similar to given below post

Hi Barkath,

A 404 is usually something you’ll need to address with your application code.

Are you seeing anything in your services logs you could share here to help with the troubleshooting?

Regards,

Matt

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.