Mobile App and Server App

How to develop both Mobile App and Server App

These days, mobile app is not standalone, and need to exchange data.
To test finally, we need to host app to server.
While development, we can test communication using localhost server app and simulator on the same machine
It’s easy to test immediately.

How to test

Host Server App

The easiest way to test is to deploy app to public server.

Serverside example

Spring Boot localhost:8080
Before stating mobile, check from the browser.

Android

Use http://10.0.2.2 as localhost.
Not localhost, 127.0.0.1

iPhone

iOS simulator is just local machine.
We can use localhost:8080