This is a Next.js project that fetches weather data from an API and connects that that to the OpenAI API to get a weather summary for the day. This was made following the Sonny Sangha video.
To get started, you need to clone this repository and install the dependencies by running:
git clone https://github.com/MacroHEX/weather-ai.git
cd weather-ai
npm install
Follow the quickstart guide at StepZen
Deploy it using:
stepzen start --dashboard=host
To use this project, you will need to obtain API keys from the OpenAI website. Once you have the API key, rename the .env.template
to .env.local
and paste your keys into it:
OPENAI_API_KEY = your_openai_api_key
To run the project, use the following command:
npm run dev