MacroHEX / weather-ai

Weather app that fetches data from an API and generates a custom message using OpenAI prompt.

Home Page:https://weather-ai-psi.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weather AI

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.

Getting Started

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

Setting up Stepzen

Follow the quickstart guide at StepZen

Deploy it using:

stepzen start --dashboard=host

Using the API Key

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

Running the Project

To run the project, use the following command:

npm run dev

About

Weather app that fetches data from an API and generates a custom message using OpenAI prompt.

https://weather-ai-psi.vercel.app


Languages

Language:TypeScript 96.3%Language:JavaScript 3.4%Language:CSS 0.2%