Skip to content

sb-luis/where-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

where.name

Guess the country geography game with real-time multiplayer presence.

Stack

  • Frontend — Next.js (apps/frontend-js)
  • Backend — Go (apps/backend-go)
  • Reverse proxy — Caddy (apps/reverse-proxy)
  • Database — PostgreSQL

Running locally

Docker runs everything behind Caddy. For local development, the Go backend and frontend run outside Docker while postgres stays containerised.

# start postgres
docker compose up postgres -d

# backend
cd apps/backend-go && air

# frontend
cd apps/frontend-js && npm run dev

Required: .env.local

Create apps/frontend-js/.env.local:

NEXT_PUBLIC_WS_URL=ws://localhost:4000/ws

Without this, the WebSocket connects through the Next.js dev server which cannot proxy WebSocket connections. In Docker, Caddy handles the /ws route so this variable is not needed.

About

a small game built with public geospatial data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors