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

https://github.com/hvalfangst/chi-api

Golang hero API with Chi-Router & Go-PG deployed on k8s
https://github.com/hvalfangst/chi-api

docker go-chi go-pg golang k8s kubernetes

Last synced: 3 months ago
JSON representation

Golang hero API with Chi-Router & Go-PG deployed on k8s

Awesome Lists containing this project

README

          

# Hero API with Chi & Go-Pg deployed on K8s

## Requirements

* x86-64
* Linux
* Docker
* k8s

## Creating resources
The shell script "up.sh" is responsible for building the local Docker image and creating requested resources, which are defined in our k8s manifest.

```
sh up.sh
```

## Destroying resources
The shell script "down.sh" frees up allocated resources.

```
sh down.sh
```

## Routes

### Heroes
GET http://localhost:8080/heroes

GET http://localhost:8080/heroes{id}