This is the repository behind https://code.golf
- Install mkcert:
$ yay mkcert
- 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" ✅
- Build the assets:
$ ./build-assets
- Build the languages: Using the pull option pulls images from Docker Hub, instead of building them locally, which saves a large amount of time (possibly hours).
$ ./build-langs --pull
- Bring up the website:
$ make dev
- Optionally, load information from the code.golf database.
pip install -r utils/requirements.txt
utils/update_sql_from_api.py
- Navigate to https://localhost
- Run the unit tests:
$ go test ./...
- Run the e2e tests:
$ prove