This is a generic recipe generator app based off of the example app used in the OpenAI API quickstart tutorial. It uses the Next.js framework with React and Magic for cookie-based, passwordless authentication with email-based magic links.
Clone the repository:
git clone git@github.com:MaxSchmitz/ingredia.gitLogin to the Magic Dashboard and get the keys of your application
Next, copy the .env.local.example file in this directory to .env.local (which will be ignored by Git):
cp .env.local.example .env.localThen set each variable on .env.local:
NEXT_PUBLIC_MAGIC_PUBLISHABLE_KEYshould look likepk_test_abcorpk_live_ABCMAGIC_SECRET_KEYshould look likesk_test_ABCorsk_live_ABCTOKEN_SECRETshould be a string with at least 32 characters
Login to the OpenAI API and get the keys of your application and add to .env.local:
OPENAI_API_KEYshould be your api key from openapi
Now, run Next.js in development mode
npm run dev
# or
yarn devYour app should be up and running on http://localhost:3000!
