Search code examples
androidservergoogle-cloud-platform

How to make the server backend of a mobile app?


I am an Android developer and I want to make an app which shows users on a map and performs tasks based on their location.

The whole model of the app has to run in the server. I need an API which:

  • Receives user location
  • Performs calculations based on the location of the users
  • Sends response to specific users with the results

The problem is that I have 0 experience in doing server side programming.

Can you please suggest me a way of making the server?

I checked the Google Colud Platform and this video. The video addresses the connection between the app and the server, but what I really need is coding the model and deploying it on the cloud.

What is the way for me to build the API for such an app, as a developer with no server side programming experience?

Can you suggest me a tutorial which goes trough the process of building a cloud backend for a mobile app?


Solution

  • This is a very complex question. I don't recommend using a "ready-made" solution like FireBase because it's even harder to transform it into a "proper" API later on when you need it. If you know Android then you know Java, you'll have no problem learning working with a framework like Spring Framework which I recommend. Java on the backend needs a Java Servlet container, like Tomcat. First you should set up a development environment on your machine for this. I recommend searching for Spring Framework tutorials for this i.e. Spring Framework REST tutorials.

    Secondly you'll need a database like MySql or MongoDB to store data. Spring comes with ready made connections to most of the most common databases, so its pretty easy to work with them.

    When you're ready to deploy your service I recommend using a PAAS like Heroku.com where you can run your service for free first. In this way you get to control everything yourself and you also learn a useful skill.