Skip to content

fzakaria/surf-journal

Repository files navigation

Surf Journal

https://surf-journal.fly.dev/

built with nix github master branch workflow

A ** WIP ** simple website to log surf sessions and view interesting statistics.

Development

Setup

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

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published