Every day is Kampai Day! Discover, Learn and be a Barista on your own!
Aside from theMealDB API that I used in my-fud-app, the same team have an api called theCocktailDB which inspires me to create an app with it. One problem that I encountered with theMealDB API is the video url being null and I want to solve it. The solution that I have in mind is to use YoutubeAPI and search a video related to it.
- Instructive- Each cocktail is provided by a list of ingredients and a video preparation guide
- Recommendation- Generates a random cocktail
- Popular Cocktail- Since I can't pay for the API, I only generate list of cocktail based on certain category (in this project, alcoholic)
- Find cocktail by Ingredient- User can sort cocktail based on ingredient
- Save a cocktail as Favorite- Cocktails can be saved locally, powered by ROOM database.
- Search Cocktail- User can search cocktail by name.
- Night Mode and Light Mode Supported
- Supports Landscape and Portrait Orientation
For this projects, I used theCocktailDB API, same team that created theMealDB which I used on my previous app. I no longer face difficulty implementing MVVM and Room Database. The problem that I faced is some videoURL/ID coming from theCocktailDB API are null. To solve this, I used YoutubeAPI. I created a custom search query where I format as "$cocktail_name preparation guide" and select the first relevant video. With this, I will always have a video for each of cocktail.
- Open Android Studio
- Click File -> New -> Project from Version Control
- In the URL field, paste this: https://github.com/Fangzsx/cocktail-db.git
- Set directory of the project
- Click Clone
I'd like to express my thanks to the following authors:
Spikeysanju for Motion Toast 🤩🔥
PierfrancescoSoffritti for Android Youtube Player 💗💗
bitvale for LightProgress 😻💞
wajahatkarim3 for EasyFlipView 🥰❣️
coil-kt for Image Loading 💟💓