This small repo is meant to demonstrate an HTTP server which is super easy to build and deploy.
Please read the accompanying article on my website for more details.
bazel build //server
This should result in a single binary file that is ready to be deployed.
You can build with the command above and manually invoke the binary, but with Bazel it's cleaner to use the run
command.
bazel run //server
You can then test it with:
curl http://localhost:12345/hello/foo
Output:
Hello foo