This app folows a MVP architecture pattern. This android app retrieves a set of restaurants from a json file stored in the assets folder and visualize them using a recycler view(as shown in screenshots at the end of page). One can sort the restaurant list based on it’s current openings state, you can favourite a restaurant and you can select a sort value to further sort the list. You can also search for restaurant word by word using a search bar provided.
Basic things considered while making this app:
- Favourites: Favourite restaurants are at the top of the list, your current favourite restaurants are stored locally on the phone.
- Openings state: Restaurant is either open (top), you can order ahead (middle) or a restaurant is currently closed (bottom).
- Sort options: Always one sort option is chosen and this can be best match, newest, rating average, distance, popularity, average product price, delivery costs or the minimum cost.
- Filtering: It’s up to you how you how you want to search by restaurant name.
App Name: Restaurants App
Tools & Languages Used
- Android Studio 3.5.2
- Java Programming
Dependenices/Libraries Used:
- GSON
- RecyclerView
- Room DB
- JUnit
- Espresso
- Mockito
Unit Test covered:
- Main Activity UI test
- Favourite DAO test
- MainView Presenter Test
- Favourite Activity UI test
Steps to run the project
- Download the project in your local directory or clone it whichever is feasible for you.
- Open Android Studio-> File-> Open-> Select android directory.
"ScreenShots of App"