https://github.com/mtlh/mealmentor
Type in a prompt and get steps to make that food. Auth included so users have a library of past meals.
https://github.com/mtlh/mealmentor
api chatgpt typescript
Last synced: 3 months ago
JSON representation
Type in a prompt and get steps to make that food. Auth included so users have a library of past meals.
- Host: GitHub
- URL: https://github.com/mtlh/mealmentor
- Owner: mtlh
- Created: 2023-03-16T21:09:53.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-08T00:59:06.000Z (about 1 year ago)
- Last Synced: 2025-01-03T04:46:59.249Z (5 months ago)
- Topics: api, chatgpt, typescript
- Language: TypeScript
- Homepage: https://mealmentor.mtlh.dev
- Size: 699 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MealMentor
ChatGPT API Hackathon Project hosted by DonTheDeveloper.
## About
This project is a Cooking App featuring food and chatgpt apis to gather recipes, generate instructions/ingredients and save to a user library; try it out using a feature full demo version with one click.Built main features as part of a hackathon from March -> April 2023.
## Demo
This project is deployed directly onto Vercel.
[mymealmentor.vercel.app](https://mymealmentor.vercel.app/)## Technologies
- TailwindCSS
- Typescript
- React
- Nextjs
- TRPC
- PlanetScale (MySQL)
- Auth0
- ChatGPT API
- Spoonacular API
- Vercel (hosting)## How to deploy locally
Follow the steps below:
1. Download code from this repository.
2. Install every dependency.
```typescript
npm install
```
3. Create api keys from the following sources:
1. [Auth0](https://manage.auth0.com/dashboard/)
2. [OpenAI/ChatGPT](https://platform.openai.com/account/api-keys)
3. [PlanetScale](https://app.planetscale.com/)
4. [FoodAPI](https://spoonacular.com/food-api/console#Profile)4. Get all required keys setup in a .env file.
```typescript
AUTH0_SECRET="key_goes_here"
AUTH0_BASE_URL="url_goes_here"
AUTH0_ISSUER_BASE_URL="auth0_url_goes_here"
AUTH0_CLIENT_ID="clientid_goes_here"
AUTH0_CLIENT_SECRET="key_goes_here"
OPENAI_API_KEY="key_goes_here"
DATABASE_URL='url_goes_here'
FOOD_APIKEY='key_goes_here'
```5. Run locally
```typescript
npm run dev
```6. Enjoy!