This is a demo project doing simple things with Tilt in Go to achieve rapid development in containers.
- Clone the repository
- Run
git checkout step1
to get to the first step - Run
tilt up
in the root of the repository - Open your browser to
http://localhost:10350
to see the TILT UI - Curl to
http://localhost:32400
to hit the api (available routes are/
and/ready
)
Try making changes to the codebase and see tilt rebuild the container and update the running container.
Some steps have already been outlined in the repository, but feel free to experiment with the codebase.
To see a diff between steps run git diff step1 step2
or git diff step2 step3
etc.
Creates the basic structure for us to use. A simple Go API, dockerfile, and tiltfile.
Adds caching to the dockerfile (particularly in the go build step)
Expands the project to use go 1.22's new routing to provide a better structure going forwards.
Moves the /
endpoint to /greet/{name}
and greets the user with a message.
A kitchen sink example, so to speak. We use a database, a migrations file, and so much more.