An open API service indexing awesome lists of open source software.

https://github.com/qaware/cloud-native-weather-golang

A simple weather REST service using Golang, Gin and GORM.
https://github.com/qaware/cloud-native-weather-golang

cloud-native docker flux gin-framework gorm-orm hacktoberfest kustomize microservice skaffold tilt

Last synced: 5 months ago
JSON representation

A simple weather REST service using Golang, Gin and GORM.

Awesome Lists containing this project

README

          

[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=qaware_cloud-native-weather-golang&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=qaware_cloud-native-weather-golang)

# Cloud-native Weather Service with Golang

This example implements a simple weather REST service using Golang, GORM and Gin.

![Weather Service Architecture](architecture.png)

## Build and run locally

```bash
$ tilt up
$ skaffold dev --no-prune=false --cache-artifacts=false
```

## Exercise the application

```bash
$ curl -X GET http://localhost:18080/api/weather\?city\=Rosenheim
{"city":"Rosenheim","weather":"Clear"}

$ curl -X GET http://localhost:18080/
```

## Lab Instructions

The instructions for the Cloud-native Experience Lab workshop can be found in [docs/README.md](docs/README.md).

## Maintainer

M.-Leander Reimer (@lreimer),

## License

This software is provided under the Apache v2.0 open source license, read the `LICENSE`
file for details.