Run
curl -fsSL "http://srv.klo.dev/update/latest/linux/x86_64?stream=pro:latest" -o klotho
And then:
sudo chmod +x klotho
Finally add Klotho to Path:
PATH=$PATH:~/klotho
This is because I've downloaded Klotho in my root user folder.
Check the documentation: LINK HERE
go run main.go
curl "localhost:3000/hello"
# -> Hello from Klotho!
curl "localhost:3000/hello/your-name"
# -> Hello your-name!
If you haven't already login, run the following command:
klotho --login
E.G.
klotho . --app my-first-app --provider aws --outDir _compiled
This will generate /_compiled
directory
Open the ./_compiled/my-first-app.png
diagram created alongside the cloud application: