Skip to content
 
 

Repository files navigation

Hello App Fork

A small sample app with a Go API and a React frontend.

Run the API

go run ./api

The API listens on http://localhost:18081.

Endpoints:

  • GET /api/hello
  • GET /healthz

Run the frontend

cd web
npm install
npm run dev

The frontend runs on http://127.0.0.1:5173 and proxies /api requests to the Go API.

Containers and Kubernetes

This app has two production-style containers:

  • Dockerfile.api builds the Go API image.
  • Dockerfile.web builds the React static bundle and serves it with nginx.

The Kubernetes manifests live in deploy/ with overlays for dev and prod. Each overlay deploys into the app namespace hello-app-fork in its target cluster; prod is the active environment, while dev is reserved for a future dev cluster. The route follows the platform pattern from ../mtest:

  • /api routes to hello-app-fork-api
  • / routes to hello-app-fork-web

See DEPLOY.md for the image and Flux OCI deploy bundle commands.

b

About

hello

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages