kctoft / stepzen-weather-app

AI Weather App with ChatGPT-3.5 (Nix, Next.js 13.3, React, Tremor 2.0, StepZen, GraphQL)
https://stepzen-weather-app-silk.vercel.app/
1 stars 0 forks source link

Implement Stepzen Backend #3

Open kctoft opened 1 year ago

kctoft commented 1 year ago

Action Items

kctoft commented 1 year ago

Special note: when designing the Weather API endpoint, be sure to be in the stepzen folder.

Since I am using Nix flake, my node_modules folder needs to be accessed in a particular way (see example below).

 PATH=$PWD/node_modules/.bin:$PATH 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&temperature_unit=fahrenheit&windspeed_unit=mph&precipitation_unit=inch&timezone=America%2FLos_Angeles"

When that is successful the terminal response will be "Successfully imported curl data source into your GraphQL schema" & there will be new folders in the stepzen folder containing relavent data to your particular endpoint. git commit: 9994809879446e8e928a0d5e10fcecfa544d0234

kctoft commented 1 year ago
kctoft commented 1 year ago
kctoft commented 1 year ago
kctoft commented 1 year ago

Running into 405 err with Apollo Client. Need to fix: 25eb58cdc456df92abc3297debd744611a61d45f

kctoft commented 12 months ago