Skip to content

MrRytis/go-weather

Repository files navigation

Welcome to GO weather application

Description

This is a simple weather application that uses the Meteo.lt and Open-Meteo API to get the weather data for a given city.

Currently supported cities:

  • Vilnius
  • Kaunas
  • Klaipeda

Visit http://weather.rytis-projects.lt to check out project


Installation

  1. Clone the repository
  2. Run (first time):
make build
  1. Migrate database:
make migration_up
  1. Run the application:
make run
  1. Open the browser and go to http://127.0.0.1:8080

Make commands

Migrations:

  • make migration_generate - Create new migration file
  • make migration_up - Run migrations
  • make migration_down - Rollback migrations

Run:

  • make run_air - Run the application with hot reload
  • make run - Run the application

Swagger:

  • make swagger - Generate swagger documentation

Tech stack

  • Go
  • Docker
  • Docker-compose
  • Postgres

Main Libraries

  • Gorilla Mux
  • Gorm
  • Cron/V3

TODO

  • Add tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published