Skip to content

SotKarn/PostApp

Repository files navigation

PostApp

A simple app that uses https://jsonplaceholder.typicode.com/ API, to perform some basic operations (get all posts, create a post, delete a post) and lists data in a RecyclerView from local storage.

The app is based on a MVI architexture : architexture

Flow

The first page is a fragment (PostFragment) with a RecyclerView that lists all posts from the cache. Once the fragment is launched it tries to get all posts from the remote and stores them in local storage with Room.

From the PostFragment, on an recyclerView item click, it navigates to another fragment (DetailsFragment), where you have the option to delete that particular post item (by pressing the floatingActionButton)

In addition, from the PostFragment you can create a new post by pressing the floatingActionButton, where you navigate to Fragment (CreatePostFragment).

Libraries

Persisting data: Room v2.2.5
HTTP Client: Retrofit v2.9.0
Dependency Injection: Dagger-Hilt v2.38.1

Releases

No releases published

Packages

No packages published

Languages