Random Restaurants
This app is designed to illustrate fetching data from a REST API using Retrofit and Moshi. Local storage with Room Database for offline use by implementing NetworkBoundResource. You will get to see the usage of Kotlin Coroutines, Kotlin Flow, Live Data, Dagger-Hilt – (Clean Architecture)
Details
- Operating System : Android
- Programming Language: Kotlin
- Architecture : MVVM
- Dependency Injection : Hilt
- Fragment Management : Navigation Component
- Material Components for Android : Material Components for Android
- Design : Material Design 3
- Moshi : Moshi
- Retrofit : Retrofit
- Room : Room
- Coroutines : Coroutines
- Kotlin Flow : Kotlin Flow
- LiveData : LiveData
- ViewModel : ViewModel
Getting started
There are a few ways to open this project.
Android Studio
Android Studio
->File
->New
->From Version control
->Git
- Enter
[email protected]:mbobiosio/RandomRestaurants.git
into URL field an pressClone
button 3, Build the project and run on an android device or emulator
Command-line + Android Studio
- Run
git clone [email protected]:mbobiosio/RandomRestaurants.git
command to clone project - Open
Android Studio
and selectFile | Open...
from the menu. Select cloned directory and pressOpen
button - Build the project and run on an android device or emulator
Screenshots
Author
? License
This project is released under the MIT license. See LICENSE for details.
MIT License
Copyright (c) 2022 Mbuodile Obiosio
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.