An app to fetch a random user and display the results on UI

Related tags

App RandomUser
Overview

Random User

An app to fetch a random user from https://randomuser.me/ and display the results on UI

With an "update user" button you can fetch a random user from a Rest API.

Unit tests were implemented using a Mockserver.

Network errors were handled.

Architecture: MVVM

It also uses a repository pattern so in the future it will be possible to cache results at a local database.

Purpose

This code demonstrates how to implement:

  • Retrofit, Moshi and Coil
  • Data and Domain Layer
  • ViewModel and LiveData
  • Data Binding and custom Binding Adapters
  • Unit testing with a mockserver

Other tools used:

  • JSON To Kotlin Class Plugin (JsonToKotlinClass)
  • Postman (API client tester)

Getting Started

  1. Download and run the app.
You might also like...
An App based on MVVM architecture to track & store a user's runs using Google Maps, with options to view & sort the runs as per the user's choice along the with option to run the app in background.
An App based on MVVM architecture to track & store a user's runs using Google Maps, with options to view & sort the runs as per the user's choice along the with option to run the app in background.

An App based on MVVM architecture to track & store a user's runs using Google Maps, with options to view & sort the runs as per the user's choice along the with option to run the app in background.

AnimApp is an app that recommends you random anime and you can add it to your favourite if you like it.
AnimApp is an app that recommends you random anime and you can add it to your favourite if you like it.

papb-team6 AnimApp is an app that recommends you animes and you can add it to your favourite if you like it. Team members: Firdaus Bisma Suryakusuma (

An app for random Reddit memes with the option to share it as well!

Meme Share App What - An app for random Reddit memes with the option to share it as well! Why - Wanted to learn about integrating APIs with Android ap

Just another Quotes app with beautiful UI which shows random quotes from the internet
Just another Quotes app with beautiful UI which shows random quotes from the internet

RandomQuotes Just another Quotes app with beautiful UI which shows random quotes from the internet. Screenshots Libraries Volley Android Material API

An Android App based on MVVM Architecture which shows random anime images from some famous subreddits
An Android App based on MVVM Architecture which shows random anime images from some famous subreddits

Android App which shows random anime wallpapers from some famous subreddits like r/animeArt, r/imaginarySliceOfLife, r/animePhoneWallpapers and animeWallpapersSfw

LocationPhoneMode - The app will ask the user to allow it to track the user location
LocationPhoneMode - The app will ask the user to allow it to track the user location

LocationPhoneMode The app will ask the user to allow it to track the user locati

A random meme generator and can be shared , each click will show yo a different meme.
A random meme generator and can be shared , each click will show yo a different meme.

AlphaMemes(random meme sharing app) A android app which display new meme on each click. used API which is dynamic/ Glide library used / Recycler view

This SDK can be used to identify a user via passport or ID Card prove identity of user via Biometry comparing selfie and photo from chip of ID Doc Android application for GitHub user search and view user details
Android application for GitHub user search and view user details

GitHubApp Android application for GitHub user search and view user details Architecture UI observing the live data for the main list as received from

Owner
Patricio J. Conti
I'm an electronic engineer, worked in a Toyota factory for years and now I'm enjoying developing Android Apps
Patricio J. Conti
The app has got fullscreen Turkey map via Huawei Map. App selects random province and shows it borders on the map than user will try to guess the provinces name.

Il Bil App Introduction I will introduce you to how to implement Account Kit, Map Kit, Game Service. About the game: The app has got fullscreen Turkey

Gökhan YILMAZ 4 Aug 2, 2022
TMDbHub - Listing movies using the TMDb API. You can filter results, view details, and save them to a collection

TMDb Hub Listing movies using the TMDb API. You can filter results, view details

David Varga 4 Dec 30, 2021
The application shows the profile of a random user

The application shows the profile of a random user

Aleksandra 1 Apr 19, 2022
Project results for #JuaraAndroid2022

Project results for #JuaraAndroid2022

Patricia Fiona 6 Oct 27, 2022
Simple Telegram bot that responds with list of results obtained from Google.

Simple project focused on learning a little more about how Telegram bots work and are created. The bot has a very basic functionality: the user types

Jesus Ericks 3 Nov 13, 2022
inderjeet yadav 2 May 5, 2022
Newesy is news app which uses NewsAPI to fetch news.

Newesy is news app which uses NewsAPI to fetch news.The main aim of this app was to learn Modern Android Architecture (MVVM).It uses MVVM,Kotlin-coroutines,Room,ViewModal,Retrofit,GSON and Navigation graph

SHANTANU RATHOD 7 Oct 29, 2022
null 0 Jan 7, 2022
MovieLibrary -An android application which uses tmdb API to fetch the data for various movies and TV Shows

MovieLibrary -An android application which uses tmdb API to fetch the data for various movies and TV Shows

null 1 May 1, 2022
Android port of Simon Tatham's Puzzles. *git replace in use* - you might want to {{ git fetch origin 'refs/replace/*:refs/replace/*' }}

This is the README accompanying the source code to Simon Tatham's puzzle collection. The collection's web site is at <https://www.chiark.greenend.org.

Chris Boyle 470 Dec 22, 2022