Git Product home page Git Product logo

simbabque / code-golf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from code-golf/code-golf

0.0 1.0 0.0 3.72 MB

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

Home Page: https://code.golf

License: MIT License

Go 44.60% Shell 0.56% CSS 6.66% JavaScript 5.16% Perl 1.78% Dockerfile 12.70% C 6.70% HTML 11.46% Makefile 1.01% Raku 3.42% C# 3.36% F# 0.65% Nim 0.16% PLpgSQL 1.74% Ruby 0.04%

code-golf's Introduction

Code Golf

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

Quickstart

  1. Install dependencies:
  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. Bring up the website:
$ make dev
  1. Optionally, load information from the code.golf database.
go run utils/update_sql_from_api.go
  1. Navigate to https://localhost

Hacking

Some of ancillary scripts are written in Raku, to run these ensure you have a recent install of Raku installed and use Zef to install the dependencies:

$ zef install --deps-only .

Testing

  1. Run the unit tests:
$ make test
  1. Run the e2e tests:
$ make e2e

Style

URL slugs are consistently abbreviated (e.g. cheeovs, langs, stats) but page titles aren't (e.g. Achievements, Languages, Statistics).

Paginated URLs use a trailing number but only on pages after the first (e.g. /rankings/medals/all, /rankings/medals/all/2, etc.).

code-golf's People

Contributors

abrudz avatar adj97 avatar alemelis avatar andersk avatar andre-lameirinhas avatar btnlq avatar cafehaine avatar dpatterbee avatar edre avatar fynnkroeger avatar galladeguy avatar golfingsuccess avatar grayjoking avatar ian-h-chamberlain avatar irratix avatar jayxon avatar jjatria avatar jraspass avatar kaeruct avatar katielg avatar labster avatar nephila-nacrea avatar newdefectus avatar p01 avatar primo-ppcg avatar prplz avatar sirbogman avatar tfeld00 avatar waffle3z avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.