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%
| .github/workflows | ||
| data/dictionaries | ||
| locales | ||
| scripts | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| config.toml | ||
| LICENSE | ||
| README.md | ||
🎄 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"
}
}