It looks like you’re trying to run a monorepo, which Render has support for. Your client folder looks like a “create react app” project, and the server a Node Express server.
However, they also seem to have some dependent cross-over, as your backend seems to serve the built “client” files.
A more common pattern would be to deploy the React site to a Static Site and the backend to a Web Service and have them interact with client-side calls.
In your case, it looks like you’ll need to correct your Build & Start Commands to be a little more complex, maybe something like:
Build Command cd client && npm install && npm run build && cd ../server && npm install
Start Command cd server && npm start
These commands are only my guess based on what I can see from your repo, but you’ll know what you need to do to get your app up and running.
I’m seeing cd server in the start command. Do I need that even thought I don’t have a server folder?
It looks like you have a server folder to me:
Deleting and recreating services wouldn’t make a difference. Your current build command only installs one package npm install concurrently. Your package.json files are in the subfolders, so you’ll either need to set a Root Directory, or cd into them. As they call each other, traversing into each folder seems necessary.
I’ve made my suggestions above, this isn’t a Render issue, it’s a case of getting your application ready for production deployment. You’ll know your app the best, but from what I can see in the repo my suggestions may be worth a shot, even just to rule them out to work toward your own solution.
We really are well beyond the scope of our support here, but I see the issue.
The tutorial you’re following isn’t great. However, when it gets to the deploying to Render part, it uses two service method that I mentioned earlier:
A more common pattern would be to deploy the React site to a Static Site and the backend to a Web Service and have them interact with client-side calls.
Failed to load resource: the server responded with a status of 404 ()
/api/v1/projects?p=1&languages=&title=:1
Uncaught (in promise) SyntaxError: Unexpected token 'N', "Not Found" is not valid JSON
mernportfolio-client.onrender.com/:1
I tried changing the rewrites to “api/v1/projects” but that didn’t seem to work either