This is a simple Go project.
You can use this project as a starting point for trying out Lekko by following the instructions on our Get started guide.
This project starts a simple http server on localhost:8080
.
go run main.go
To run with an environment variable, simply pass it in as part of the go run
call:
LEKKO_API_KEY=****** go run main.go
The server responds to requests with a simple text message. You can send requests using curl
:
curl localhost:8080