[To be replaced with proper description] According to RISKESDAS, WHO and UNICEF the number of overweight Indonesian citizen has doubled over the past two decades. Obese people are more likely to suffer from non-communicable diseases, on the other hand Underweight is also a problem, 11.2% of Indonesian measured underweight that could lead to infertility. UNICEF Representative Debora Comini said "Good nutrition is not just about having enough food to eat but also getting the right food to eat, ", she also said that "many parents do not have sufficient knowledge to take the best decisions regarding their family’s food choices." With this app we aim to provide knowledge to the user to make the right choice about what to eat. We'll recommend food and give nutritional value to help them make that decision.
This project use Jetpack Compose, Android’s modern toolkit for building native UI. Jetpack Compose is currently in beta and only works with Canary Build of Android Studio.
- Clone this repository and open it in the latest Android Studio (Canary build).
- Get the
google-services.json
file that I've sent in Discord/ or create another one. - Place the file in the
app
directory - Create a file called
secret.properties
in this project root dir and copy, paste and replace what's neededEDAMAM_API_KEY="YOUR_EDAMAM_API_KEY" EDAMAM_APP_ID="YOUR EDAMAM APP ID" EMULATE_SERVER=false // boolean depends if you want to emulate firebase locally or not
- You can't commit directly, therefore you have to fork this repository and submit a pull request.
- When you open the app for the first time, you'll be greeted with welcome screen. You can skip it by tapping Skip button, or you can go to the next slide by sliding it or tap the next until you finally reach the third page where you can sign in.
- Then you'll get to the home screen. Tap the icon to take picture. If all ingredients are detected tap next, otherwise add them manually by tapping the search icon.
- Next you'll see summary, when you're done reading it tap Save
- You'll be back to the home screen wait about 2 seconds, and you will see the result.
- You should also see burn calories button, where you can burn calories if you want to. But since you just started using the app you'll see something like
-\-
on the button. that is because we don't have enough information to recommend how much calories you should burn. - Keep using the app so we can get to know you better and provide the best recommendations.
(will be translated to English and put into the app soon...)
Ingredients | Familiar units |
---|---|
Rice | 1sdm : 15g |
Egg | 1butir : 60g |
Tempeh | 1buah segitiga : 20gr 1buah sedang : 50gr 1buah kecil : 25gr |
Tofu | 1potong kecil : 20gr 1potong sedang : 40gr 1potong besar : 80gr 1buah kecil : 30gr 1buah besar : 40gr |
The CI uses Spotless to check if your code is formatted correctly and contains the right licenses. Internally, Spotless uses ktlint to check the formatting of your code. Here's how to configure it for use with Android Studio (instructions adapted from the ktlint README):
-
Close Android Studio if it's open
-
Download ktlint using these installation instructions
-
Apply ktlint settings to Android Studio using these instructions
-
Start Android Studio
Before committing your code, run ./gradlew app:spotlessApply
to automatically format your code.
- All illustrations used in this app are from stories.freepik.com
- EDAMAM API is used to get nutritional values
- Poppins font, licensed under the Open Font License.
Working on it!