it's an android app using jetcompose to get data from api, caching it
The architecture of this application relies and complies with the following points below:
- Clean Architecture,: into 3 layers ui, data, domain
- Pattern Model-View-ViewModel (MVVM) which facilitates a separation of development of the graphical user interface.
- Android architecture components which help to keep the application robust, testable, and maintainable.
| Login Screen | Home Screen | Details Screen |
|---|---|---|
![]() |
![]() |
![]() |
- Kotlin - official programming language for Android development .
- JetCompose - modern toolkit for building native UI. .
- Hilt - dependency injection library .
- Retrofit A type-safe HTTP client for Android
- Coroutines - for asynchronous programming .
- Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.
- ViewModel - Stores UI-related data that isn't destroyed on UI changes.
- Room DataBase - Access your app's SQLite database with in-app objects and compile-time checks.
The base URL ==> https://run.mocky.io/v3/ with endPoint 5aef18d7-961c-4327-8eb6-102d51287f30
The response
{
"drugs": [{
"name": "aspirin",
"dose": "1 tablet",
"strength": "500 mg"
},
{
"name": "ibuprofen",
"dose": "1 tablet",
"strength": "200 mg"
},
{
"name": "paracetamol",
"dose": "1 tablet",
"strength": "500 mg"
},
{
"name": "omeprazole",
"dose": "1 capsule",
"strength": "20 mg"
}
]
}

