No description
- JavaScript 47.7%
- CSS 26.1%
- Go 15.5%
- HTML 9.9%
- Dockerfile 0.8%
| static | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
Capitalism Mania
A satirical incremental clicker game about the absurdity of wealth accumulation. Click your way from a lemonade stand to world domination.
Features
- Incremental clicker gameplay - click to earn, invest to automate
- 8 upgrades - from Lemonade Stand to Surveillance Algorithm
- 4 power-ups - boost your clicks and passive income
- 8 milestones - track your descent into oligarchy
- Satirical news ticker - rotating headlines that hit too close to home
- Auto-save - progress saved to browser localStorage
- Responsive design - works on desktop and mobile
- Dark theme - easy on the eyes during late-night grinding
Tech Stack
- Backend: Go 1.22 (standard library only)
- Frontend: Vanilla HTML/CSS/JavaScript
- Containerization: Docker with multi-stage build
Getting Started
Prerequisites
- Go 1.22+ (for local development)
- Docker and Docker Compose (for containerized deployment)
Run Locally
go run main.go
Open http://localhost:8080 in your browser.
Run with Docker Compose
- Copy the example environment file:
cp .env.example .env
-
Edit
.envwith your configuration (domain, port, etc.) -
Start the container:
docker compose up -d --build
Environment Variables
| Variable | Default | Description |
|---|---|---|
PORT |
8080 |
Server listen port |
CONTAINER_NAME |
capitalism-mania |
Docker container name |
Project Structure
capitalism-mania/
├── main.go # Go HTTP server
├── go.mod # Go module definition
├── Dockerfile # Multi-stage Docker build
├── docker-compose.yml # Docker Compose configuration
├── .env.example # Environment variable template
├── .dockerignore # Docker build exclusions
└── static/
├── index.html # Single-page game UI
├── style.css # Dark theme styles
└── game.js # Game logic and state management
Health Check
The server exposes a /healthz endpoint that returns 200 OK for container health monitoring.
Support
This project is free to play, but developing and maintaining it requires real resources—server costs, internet bills, and the developer's daily life expenses. If you've enjoyed this game and have the means, consider supporting the project:
Every contribution helps keep the game running and enables future improvements.