A web application built in Go that visualizes information about bands and artists. It consumes the Groupie Trackers API and presents artists, their members, concert locations, tour dates, and full concert schedules through a clean, server-rendered interface.
The app is written entirely with the Go standard library — no external frameworks or dependencies.
- Browse all artists — the homepage displays every band/artist as an image card.
- Artist profile pages — click any artist to see:
- Image and name
- Creation date and first album
- Band members
- Concert locations
- Tour dates
- A combined concert schedule (which dates map to which locations)
- Search — case-insensitive search of artists by name (
/search?q=...). - Concurrent data loading — the four API endpoints (artists, locations,
dates, relations) are fetched in parallel using goroutines and a
WaitGroupfor a fast startup. - Custom error pages — friendly, styled pages with images for
400,404,405, and500responses instead of raw HTTP errors.
Data is fetched at startup from the public Groupie Trackers API:
| Endpoint | Purpose |
|---|---|
/api/artists |
Band/artist info (name, image, members, creation date, first album) |
/api/locations |
Concert locations per artist |
/api/dates |
Concert dates per artist |
/api/relation |
Links dates to locations per artist |
An internet connection is required at startup so the app can reach the API.
- Language: Go (developed with 1.24.2; requires Go 1.24+)
- HTTP:
net/httpstandard library server - Templating:
html/template - Concurrency:
sync.WaitGroup+ goroutines - Frontend: HTML templates + a single CSS file (no JS build step)
groupie-tracker/
├── main.go # Entry point: loads data, sets up routes, starts server
├── go.mod
├── api/
│ ├── data.go # Data models (Artist, Locations, Dates, Relations)
│ └── fetch.go # Functions that fetch and decode each API endpoint
├── handlers/
│ ├── handlers.go # LoadData: concurrent fetch of all endpoints
│ ├── home.go # Homepage handler (all artist cards)
│ ├── profile.go # Artist profile handler (/artist/{id})
│ ├── search.go # Search handler (/search?q=)
│ └── render.go # Template + error rendering helpers
├── templates/
│ ├── home.html # Homepage / search results
│ ├── artist.html # Artist profile page
│ └── error.html # Shared error page
└── static/
├── style.css
└── images/ # Error page images (400, 404, 405, 500)
- Go 1.24+ installed
- An internet connection (data is fetched from the external API on launch)
From the project root:
go run .Then open your browser at:
http://localhost:8080
You should see the server log:
All API data loaded asynchronously and successfully
Server running on http://localhost:8080
go build -o groupie-tracker .
./groupie-tracker| Route | Method | Description |
|---|---|---|
/ |
GET | Homepage listing all artists |
/artist/{id} |
GET | Profile page for a single artist |
/search?q={query} |
GET | Search artists by name |
/static/... |
GET | Static assets (CSS, images) |
Invalid IDs, unknown paths, and unsupported methods are handled gracefully with custom error pages.
- The server listens on port 8080 by default (see
main.go). - If the API is unreachable at startup, the app logs a fatal error and exits — this is intentional, since the app has no data to display without it.