How do I deploy NodeJS server that's for a React Native App to Heroku?



I have an app using React Native as its frontend, and NodeJS as backend, and it also has a cloud MySQL instance. I want to deploy the app to the public and show it to someone as demo using Heroku or maybe other hosting services.

I want to publish my React Native App with Expo, but am not sure how/ where to host my nodeJS server so that the mobile app can access it.


You can follow Heroku official document to deploy your NodeJS server.

Then you can access the domain provided by Heroku just exactly like on your localhost.

Answered By – Thanh Chương

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More