Certainly while learning programming, you not once thought of creation a video game. For many, this is often the reason why they become interested in programming. There are now many framworków and libraries to help us create a fully functional games. Personally, some time ago I became interested in Libgdx.
Probably not once after creating Web application you would like to put it on a remote server. Personally, I like to use for this services of openshift (https://www.openshift.com) in the case of the free version it allows registrations of 3 projects and supports such containers as Tomcat, Jboss or WildFly and there is no problem to hook up a database. For larger projects there is a paid version of these services. Unfortunately the service may at first seem quite complicated but in this may help present tutorial.