Go Demo App#
A simple Go web server demo for Tangled.
Installation#
Via Pixi (Recommended)#
First, install pixi if you don't have it:
# macOS/Linux
curl -fsSL https://pixi.sh/install.sh | sh
Then install godemo from our conda channel:
pixi global install godemo --channel https://prefix.dev/nandi-testing
From Source#
git clone https://tangled.org/@nandi.latha.org/godemo
cd godemo
go build -o godemo .
Running#
godemo
The server will start on port 8080 by default.
Endpoints#
/- Returns a friendly greeting/health- Health check endpoint
CI/CD#
This project uses Tangled Spindles for continuous integration and publishes to prefix.dev.
Pipelines#
- build.yml - Runs on push to main and PRs. Builds and tests the app.
- release.yml - Runs on version tags (v*). Builds release binaries for multiple platforms.
- conda-release.yml - Runs on version tags (v*). Builds and publishes conda package to prefix.dev.
Releasing#
To trigger a release, push an annotated tag:
git tag -a v1.0.0 -m "Release v1.0.0"
git push origin v1.0.0