An open API service indexing awesome lists of open source software.

https://github.com/lperezp/food-fit-app

Food Fit is an application designed to generate healthy recipes using Genkit with Vertex AI.
https://github.com/lperezp/food-fit-app

angular cloud cloud-functions firebase genkit

Last synced: 3 months ago
JSON representation

Food Fit is an application designed to generate healthy recipes using Genkit with Vertex AI.

Awesome Lists containing this project

README

        

# Food Fit App in Genkit with Angular

![Cover Food Fit App](cover.png "Cover Food Fit App")

This is a Food Fit demo that uses Firebase Genkit to generate healthy recipes. This project uses [Angular](https://angular.dev/) for the frontend and [Genkit](https://firebase.google.com/docs/genkit) deployed on [Cloud Functions](https://firebase.google.com/docs/functions). For more information on how this app was created, check out this [blog post](https://lperezp.medium.com/food-fit-tu-partner-para-tener-una-alimentaci%C3%B3n-saludable-con-genkit-140d7cd25a22).

# Installation

To set up the project, follow these steps:

## Main application

Go to the `food-fit-app` folder and run the following command:

```
cd food-fit-app
npm install
```

## Cloud Functions

Go to the server/functions folder and run the same command:

```
cd server/functions
npm install
```

# Usage

## Main application

Go to the `food-fit-app` folder and run the following command:

```
cd food-fit-app
ng serve
```

Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.

## Cloud Functions

Follow the [guide](https://firebase.google.com/docs/genkit/cloud-run#make_api_credentials_available_to_deployed_flows) to generate the API KEY for deployment. Go to the server/functions folder and run the same command:

```
cd server/functions
npm run serve
```

# Run Genkit only

To run Genkit only, replace the `GOOGLE_GENAI_API_KEY` in the `.env` file and run the following command:

```
npm run genkit:dev
```

Generate an API key for the Gemini API using [Google AI Studio](https://aistudio.google.com/app/apikey).

# Contributing

[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/lperezp/food-fit-app/pulls)

I welcome all contributions. Please read our [CONTRIBUTING.md](https://github.com/lperezp/food-fit-app/blob/master/CONTRIBUTING.md) first. You can submit any ideas as [pull requests](https://github.com/lperezp/food-fit-app/pulls) or as [GitHub issues](https://github.com/lperezp/food-fit-app/issues).

# Author

- [Luis Eduardo](https://lperezp.dev/?utm_source=food-fit-app&utm_medium=readme&utm_campaign=food-fit-app&utm_id=github)

**Love food-fit-app? Give our repo a star :star: :arrow_up:.**