/code-golf

A game designed to let you show off your code-fu by solving problems in the least number of characters.

Primary LanguageGoMIT LicenseMIT

Code Golf

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

Quickstart

  1. Install mkcert:
$ yay mkcert
  1. Install the local CA:
$ make cert
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