I have a web project includes one NodeJs app in the back-end and one ReactJs app in the front-end. The NodeJs app serves the api to the ReactJs app.
I already deployed the NodeJs back-end to Heroku and its url is https://tidishop.herokuapp.com/
Now how can my ReactJs get api from the back-end app that is on Heroku?
I tried to config the ReactJs as below but it doesn't work.
export default {
REST_SERVER: "https://tidishop.herokuapp.com/",
DATE_FORMAT: "YYYY-MM-DD",
APPID: 12606
};
Can you give me some advice or recommendation?
Thank you very much!