Chapter 16: Capstone — Ship It End-to-End
16.4 Application minimum bar
GET /healthreturns JSON like{"status":"ok"}(or HTTP 200 with a clear body).- One business-ish route (
GET /badge) returns JSON for a sample profile badge. - App binds so Docker port publish works (
0.0.0.0, not only127.0.0.1inside the container). - README shows exact
curlexamples.
Example shape (any language is fine):
{
"user": "demo",
"badge": "early-adopter",
"service": "instagram-style-badge-api"
}
Practice task
Before Docker, run the app on the laptop once and curl both routes. Only then write the Dockerfile.