Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.35 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.35 KB

WeatherMate

Production

Development

  1. Clone the repository and install dependencies
git clone https://github.com/neetmangat/weathermate.git weathermate && cd weathermate && npm install
  1. Generate your own OpenAI API key on the OpenAI Platform

  2. Setup a Stepzen account

  3. Initialize Stepzen with the data from Weather API & run server

stepzen init && stepzen import curl https://api.open-meteo.com/v1/forecast\?latitude\=51.51\&longitude\=-0.13\&hourly\=temperature_2m,relativehumidity_2m,apparent_temperature,precipitation_probability,precipitation,rain,showers,snowfall,snow_depth,windgusts_10m,uv_index,uv_index_clear_sky\&daily\=weathercode,temperature_2m_max,temperature_2m_min,apparent_temperature_max,apparent_temperature_min,sunrise,sunset,uv_index_max,uv_index_clear_sky_max\&current_weather\=true\&timezone\=Europe%2FLondon && stepzen start --dashboard=local
  1. Add the server environment variables
cp .env.example .env.local
  1. Run the development server:
yarn run dev
  1. Open http://localhost:3000 with your browser to see the result.