A ** WIP ** simple website to log surf sessions and view interesting statistics.
This codebase is primarily built with Nix but it should work on non-NixOS machines (it is tested as such on GitHub CI).
If you are using Nix, you should be all set bu running nix develop
(or using direnv).
Otherwise simply run ./bin/setup
Deployment happens to Fly.io automatically via GitHub but you can also deploy locally.
Build the container locally.
nix build ".#container"
# you can test it via the following:
# load the OCI image
docker load < ./result
# run the container!
docker run -p 3000:80 -it -e "RAILS_ENV=development" -e "RAILS_MASTER_KEY=$(cat ./config/master.key)" registry.fly.io/surf-journal:$LATEST_HASH
You can optionally mount a local volume if you want to persist the SQLite database used.