Skip to content
A game designed to let you show off your code-fu by solving problems in the least number of characters.
Go Dockerfile HTML CSS JavaScript Assembly Other
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Add linting Jan 31, 2020
assets Use a real ellipsis Feb 9, 2020
cookie Completely reorganise code Oct 27, 2017
db Add "United States" hole Jan 28, 2020
github Move GitHub API logic out of routes Feb 11, 2020
langs Bump Lua, Nim, Rust, & Swift Feb 15, 2020
pie Update repo URL Jan 22, 2020
pretty Tweak fuzzy time, use it for trophies Feb 16, 2020
routes Bump Lua, Nim, Rust, & Swift Feb 15, 2020
t Add initial e2e test Jan 6, 2020
views Tweak fuzzy time, use it for trophies Feb 16, 2020
.dockerignore Bump Go, switch to Go modules Oct 9, 2018
.gitattributes Optimise SVG files Mar 26, 2019
.gitignore Ensure live DB backups used for testing aren't committed Jan 16, 2020
.golangci.toml Add linting Jan 31, 2020
.travis.yml Bump Travis Go Jan 6, 2020
Dockerfile Bump Go & deps Feb 9, 2020
LICENSE Add a LICENSE file May 26, 2018
Makefile Move routing to main.go Feb 2, 2020
README.md Switch to GitHub Actions Jan 22, 2020
browserstack.png Add BrowserStack to README.md Oct 30, 2018
build-assets Bump CodeMirror Jan 26, 2020
build-langs Bump Lua, Nim, Rust, & Swift Feb 15, 2020
code-golf.service Bump Go, switch to Go modules Oct 9, 2018
deploy Move hole config into a TOML file Jan 30, 2020
deploy-langs Rename containers to langs May 3, 2019
docker-compose.yml Move hole config into a TOML file Jan 30, 2020
font-subset.txt Finally merge next gen Nov 13, 2019
go.mod Bump Go & deps Feb 9, 2020
go.sum Bump Go & deps Feb 9, 2020
holes.toml Move hole config into a TOML file Jan 30, 2020
latest-langs Added “Swift” Language Jan 17, 2020
logo.png Add logo Jan 21, 2020
logo.svg Add logo Jan 21, 2020
main.go Move GitHub API logic out of routes Feb 11, 2020
run-lang Add support for Rust lang (#133) Jan 3, 2020
run-lang.asm Add support for Rust lang (#133) Jan 3, 2020

README.md

Code Golf

This is the repository behind https://code-golf.io

Quickstart

  1. Install mkcert:
$ yay mkcert
  1. Install the local CA:
$ mkcert -install localhost
Using the local CA at "~/.local/share/mkcert" ✨
The local CA is now installed in the system trust store! ⚡️
The local CA is now installed in the Firefox and/or Chrome/Chromium trust store (requires browser restart)! 🦊


Created a new certificate valid for the following names 📜
 - "localhost"

The certificate is at "./localhost.pem" and the key at "./localhost-key.pem" ✅
  1. Build the assets:
$ ./build-assets
  1. Build the languages:
$ ./build-langs
  1. Bring up the website:
$ make dev
  1. Navigate to https://localhost

Testing

  1. Run the unit tests:
$ go test ./...
  1. Run the e2e tests:
$ prove

Thanks

BrowserStack

Cross browser testing powered by BrowserStack

You can’t perform that action at this time.