Full Stack App from Scratch – Android and Retrofit – 07

posted in: Android, Database, Full Stack, Tutorial | 0

In this video tutorial, we’ll be using our JHipster full stack application that we’ve been developing in previous videos to back an Android mobile app’s data. Most mobile apps need some kind of shared data store that lives on the internet that the app can use. This may be data directly related to the user, or more generic like in our case.

So, if you remember, our web application will store and display multiple courses and lessons on multiple disciplines that we talk about on the Electronic Armory such as 3D, game development, electronics and of course mobile and web application development. So in this video, I’ll be showing you how to tap into that data and pull it into a mobile app. In the future we’ll build that out into a fully featured mobile app. For now we’ll keep it simple by showing you how to communicate with the web services API that’s built into JHipster. We’ll use Square’s Retrofit library for convenience when communicating to our API, but it’s certainly not needed as you can use the built in networking calls.

In order to allow an anonymous user to pull from our API, you’ll need to change some SQL in JHipster to allow that to happen. You can use this same command through different endpoints to allow or not allow access to certain pieces of data. Watch the previous video on iOS and changing permissions on how to do this.

Once you have your JHipster application up and running. Let’s take a look at it’s APIs using Swagger to investigate how the API works.

Retrofit Library:
http://square.github.io/retrofit/

Source Code:
https://github.com/ElectronicArmory/Armory

Data model:
https://s3-us-west-2.amazonaws.com/electronic-armory/full-stack/jhipster-jdl.jh

Part 6 of the series on building a full stack application:
https://www.youtube.com/watch?v=LOyctVxY6r4&list=PLP8n25bNfkdcGTINO2ZJXnzvMGK3nm3zY&index=6

Get JHipster:
https://jhipster.github.io/

 

 

youtube-subscribe

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.