As someone who forgets to ask if a dish has any allergens in it (peanuts and tree nuts in my case), I thought building this helpful tool might be cool. Take a picture of your food, upload it, execute the API calls, and voila ... food, ingredients, and potential allergens are detected for you. No need for social interaction!
P.S. This is for educational and experimental purposes only. Do not use this as official. Consult your food provider or official nutritional information
npm i
Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.
git clone https://github.com/your_username_/Project-Name.git
npm install
Enter your API in src/config.js
export const configuration = {
LOGMEAL_API_KEY: 'YOUR LOGMEAL API KEY',
LOGMEAL_API_URL: 'https://api.logmeal.es',
LOGMEAL_API_DISHPATH: '/v2/image/segmentation/complete/v1.0?language=eng',
LOGMEAL_API_NUTRIPATH: '/v2/nutrition/recipe/ingredients/v1.0?language=eng'
};
export const firebaseConfig = {
apiKey: "YOUR FIREBASE KEY",
authDomain: "YOURPROJECT.firebaseapp.com",
databaseURL: "YOUR DATABASE URL",
projectId: "YOUR PROJECT ID",
storageBucket: "",
messagingSenderId: "",
appId: "",
measurementId: ""
}
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)<img align="center" src="https://img.shields.io/badge/gmail-EA4335.svg?style=for-the-badge&logo=gmail&logoColor=white" alt="PHH" height="30"/>