This project is created to show:
- How to build a backend using Spark Java
- How to consume information from Spark Java (IaaS)
- How to consume information using Parse (BaaS)
The app is a simple list that load the information from two kinds of backend: Spark web service (IaaS) and Parse (BaaS)
- Open simplelistbackend in your favorite Java IDE (NetBeans, Eclipse or IntelliJ)
- Run the project
- Check that the service is running in your machine in the port 4567. You can check this in the browser with the URL http://localhost:4567/list . It should show a JSON Array.
- Open SimpleListAndroid in Android Studio
- Go to MainActivity.java and change the URL in the doInBackground method of HttpRequestTask inner class. For example, my URL will be: http://172.30.162.239:4567/list
## Configure Parse access in Android
- Create an app in Parse
- Import the files that are in the Parse folder of this repository
- Change the tokens in App.java for your Application ID and your Client Key (The're created by Parse)
- Run your app in Android Studio
- Check that the list change when you pressed both buttons (Parse and Slack). Each button access the information from a different source