1
0
Fork 0
mirror of https://github.com/coko7/advent-of-time.git synced 2026-07-20 19:54:57 +00:00
Source code for the "Advent Of Time" browser game https://aot.coko7.fr
  • Rust 60.3%
  • HTML 12.9%
  • CSS 10.9%
  • Handlebars 10.9%
  • JavaScript 3.9%
  • Other 1.1%
Find a file
2025-12-26 10:57:13 +01:00
.github/workflows ci: setup pipeline 2025-11-09 11:07:26 +01:00
data/dictionaries style: update css and content 2025-11-03 18:57:33 +01:00
locales feat: add game over freeze + messages on home page 2025-12-24 10:18:33 +01:00
scripts chore: fix text + tweak styles + add dev_mode + rework i18n + fix register-pictures.sh 2025-12-01 11:57:01 +01:00
src fix: app crashed due to u32->i32 conversion when days remaining negative 2025-12-26 10:57:13 +01:00
.gitignore git: fix .gitignore 2025-10-19 10:39:50 +02:00
Cargo.lock test: fix tests + stage Cargo.lock 2025-12-02 13:13:20 +01:00
Cargo.toml feat: add oauth2_error page + wip i18n 2025-11-18 07:46:11 +01:00
config.toml test: fix tests + stage Cargo.lock 2025-12-02 13:13:20 +01:00
LICENSE Initial commit 2025-10-17 14:10:21 +00:00
README.md docs: update README with Caddy info 2025-12-01 20:20:46 +01:00

🎄 Advent Of Time

This is the source code for the Advent Of Time webapp. The Advent Of Time is an advent type of game that takes place in December. Every day there will be a different picture and your goal is to try to guess the exact time it was taken at. You get points based on how well your perform.

The webapp relies on the rtfw-http-rs HTTP server.

A live version of this webapp can be found at aot.coko7.fr

Configuration

Use config.toml to configure things like the hostname, OAuth2, etc.

Run it

Simply cd to the root dir of the project and type:

cargo run

This should start the server on the specific hostname you configured. The default is: http://127.0.0.1:7878

Reverse-proxy configuration

Via Caddy:

aot.coko7.fr {
    reverse_proxy localhost:7878

    # Cache font in user browser to prevent re-downloading each time
    @font path /static/fonts/0xProto/0xProtoNerdFont-Regular.ttf

    header @font {
        Cache-Control "public, max-age=31536000, immutable"
    }
}