Skip to content

withObsrvr/latestledger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

latestledger.com

A tiny Go + templ + HTMX site for checking the latest Stellar ledger tip on mainnet and testnet.

Run locally

With Nix:

nix develop
export OBSRVR_API_KEY="your-api-key"
templ generate
go run ./cmd/latestledger

Without Nix:

export OBSRVR_API_KEY="your-api-key"
go run github.com/a-h/templ/cmd/templ generate
go run ./cmd/latestledger

Open http://localhost:8080.

Environment variables

  • OBSRVR_API_KEY — Obsrvr Gateway API key. Sent server-side as Authorization: Api-Key ....
  • PORT — optional HTTP port, defaults to 8080.

DigitalOcean App Platform

Set OBSRVR_API_KEY as an encrypted environment variable.

Example build command:

CGO_ENABLED=0 go run github.com/a-h/templ/cmd/templ generate && CGO_ENABLED=0 go build -o latestledger ./cmd/latestledger

Example run command:

./latestledger

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors