How to implement Rest application in production? (Web or cloud servers)

Asked

Viewed 359 times

0

Guys, I’m new at low platform and I’m learning java doing a small android project that queries database, but I saw that android is not cool to communicate with database directly, so I learned to create a Rest api using netbeans, Tomcat and glassfish. So far all right, I’m using localhost and my android app can communicate via https with the Rest api quietly, but now I want to put this on a web server, ( so I can put the app in the play store) , mostly cloud, but I have no idea how to promote this to the web, I tried via bluemix and I could not find anything on Resst in production. Do you have any tutorial? Can you tell me servers ? I saw that amzon is strong in this follow up.

A doubt, the servers will generate the https Urls for my app to order ? (How does glassfish)

I am very layy in this subject, I am not using Maven, but I can learn and start using Asap..

Thank you!!

1 answer

1

For hosting we have used the digital Ocean and we are very satisfied. Regarding urls, after deploying the application, change the android client settings, replacing the localhost with the server domain/ip (for example: localhost:8080/clients for ip_do_server/clients) following the REST protocol conventions (post = create, put = update, delete = delete, get = select)

Browser other questions tagged

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