Weather API

  • Ruby 3.2.0

  • Rails 7.0.4.2

  • PostgreSQL 14.6

  • macOS 12.6.3

  • Make sure to define env variables: ACCUWEATHER_API_URL, ACCUWEATHER_API_KEY and ACCUWEATHER_LOCATION_KEY

  • Do the setup bundle && bundle exec rails db:setup

  • Run the server bundle exec rails s

  • Basic API Docs are available at http://localhost:3000/swagger_doc: use preferable UI to read that, for example rswag-ui