Add RZ as the location
All checks were successful
/ docker-image (push) Successful in 1m25s
/ deployment (push) Successful in 0s

This commit is contained in:
Aaron Fischer 2024-01-25 11:26:43 +01:00
parent 7f5c78a02e
commit fe3bc44ce2
2 changed files with 13 additions and 4 deletions

View file

@ -1,8 +1,18 @@
# spaceapi
# Build/Use
## Develop
```
go generate
go run cmd/server.go
go run cmd/cmd.go
```
## Build/Run docker container
```
docker compose build
docker compose up
```
After that, you can access the API with https://127.0.0.1:8080

View file

@ -11,8 +11,7 @@ type Place struct {
func SpinThatWheel() Place {
// Cool places to be in Germany :)
places := []Place{
{Latitude: 48.858370, Longitude: 2.294481, Name: "Eifeltower"},
{Latitude: 27.987850, Longitude: 86.925026, Name: "Mount Everest"},
{Latitude: 48.119195, Longitude: 11.602183, Name: "ANX84, netcup Colocation im NorthC RZ, Nürnberg"},
}
pick := rand.Int() % len(places)