I took Stephen Grider's Udemy course on React and Redux. He walked us through building a basic Twitch clone that uses json-server as a backend database. I need to deploy an app like this, preferably using my Godaddy cPanel since I have a domain and hosting already purchased.
I have successfully deployed everything except for the json-server. The app works perfectly on my machine only since the project points to http://localhost:3001 and I have json-server running.
import axios from "axios";
export default axios.create({
baseURL: "http://localhost:3001",
});
How can I deploy the json-server so the app can be accessed by anyone who visits my website? The closest I could find to getting an answer was this question but I am not using Heroku. Is it possible to deploy the json-server React app to Godaddy cPanel, or would I need to store the database using something other than json-server?