How to implement application rest in production? (Web or cloud servers) [closed]

0

I'm new to platform and I'm learning java doing a little android project that queries database, but I saw that android is not cool to communicate with database directly, so I learned to create an api rest using netbeans, tomcat and glassfish. So far so good, I'm using localhost and my android application can communicate with https with api rest quietly, but now I want to put this on a web server, (so I can put the app in the play store), mainly cloud, but I have no idea how to promote this for the web, I tried via bluemix and I could not find anything about rest in production. Do you have any tutorials? Can you point me servers? I saw that the amzon is strong in this follow up.

In doubt, will the servers generate the https URLs for my app request? (As the glassfish does)

I'm very lazy on this subject, I'm not using maven, but I can learn and start using asap.

Thank you !!

    
asked by anonymous 03.07.2017 / 22:46

1 answer

1

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

    
04.07.2017 / 04:21