Here I’ve uploaded the NodeJS API- https://react-blog-api.themepack.net It’s working fine. Source code of the API- github .com/mofizul21/React-Blog-API
From here- Blog App I’m trying to register. But I see the CORS problem. Later I’ve used the npm i cors module in the Node app, now I see POST https://react-blog-api.themepack.net/auth/register 404 in the browser console.
I’m using Namecheap hosting. The app is working fine in localhost. But creating problems in the live server. On the homepage it should display blog from MongoDB, also that’s not working.
Also, are you sure the API is actually running? If I look at the package.json file you only have this for the start script "start": "nodemon index.js" and you do not have nodemon in the dependencies.
The start script should be running node, you can have a dev script for the local environment.
@lasjorg Yes, I’m 100% sure that the NodeJS is running on the Namecheap shared hosting and trying to get data from there. React app is also from the same hosting.
Namecheap has tools for running NodeJS, Python apps.