Doubt about consuming backend with Spring

Asked

Viewed 121 times

0

Good morning,

I’m looking to start a Spring project with Ionic my goal is to publish the Ionic app in the Google store and consume the backend with Springboot, I know that has to consume this backend by Heroku.

But I wonder if climbing the App to the store would have how I consume this backend on a private server, or local...

2 answers

2


Heroku has no influence on back-end services.
It’s just a way to host your Java/Spring application.

For the mobile app, what matters are the routes of the services provided by the back-end.

If you have your own domain, you can configure it wherever you want (including in Heroku) and then call the services from there.
This way, it doesn’t matter if you use Heroku or your own server. The important thing is that the routes the mobile app requires are correct.

For example:

If you have the domain meudominio.com.br and that has a back-end user registration service, your mobile app would call a route like:

https://www.meudominio.com.br/usuarios

This does not matter if the back-end is in Heroku or local, as long as your choice is configured correctly.

However, you don’t need a particular domain, but in this case, the route would change depending on the hosting you choose: Heroku will have to provide something like nome-da-sua-app.herokuapp.com, the location would be an IP, Amazon would have another way and so on.

Of course, it’s much easier for you to upload a Spring Boot application and configure the domain by Heroku than if you want to do it on your own server (unless you have backward knowledge).

0

From what I understand you would have to publish both applications. The app in the google store and the backend with the web services on a server that supports spring boot. With the published backend you could access it from anywhere.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.