souplesse

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit a21b21d240daf03359f4d2a53971ce3d696cb55b
parent 0b1aa29f4154cec7a01fe24ff713dfd08a69e480
Author: Daniel Barlow <dan@telent.net>
Date:   Fri, 29 Nov 2024 18:14:19 +0000

describe Procfile in README

Diffstat:
MREADME.md | 55+++++++++++++++++++------------------------------------
1 file changed, 19 insertions(+), 36 deletions(-)

diff --git a/README.md b/README.md @@ -49,13 +49,28 @@ ratio, or ... some other weirdness) Use `nix-shell`. Inside the shell -* use `make` to build frontend (Elm) and backend (Haskell/Yesod) +* use `make` to build frontend (Elm) and backend (Haskell/Yesod) and + run tests for both. Refer to the Makefile (which is gratuitously + x86-64-specific, sorry) for details -* run tests with `cabal test --test-show-details=always`: if you don't -ask for details it won't tell you about incomplete pattern matches +* `Procfile` describes _all_ the things I like to run in different + tabs, including a Docker container for Postgres. Best used with + Overmind: run `overmind start -D` and then `overmind connect` to + fire up a tmux session -* run the app with `cabal run` +## Sample data + +The upload form deliberately doesn't have CSRF (for now, at least) so +that you can chuck a bunch of GPX files at it using curl + +``` + for i in tmp/Tracks/*.gpx ; do curl --form f1=@$i 'http://localhost:3000/upload'; done +``` + +This should be safe to do repeatedly because it will refuse upload of +tracks where the database already contains any points in the time +range of the uploaded track ---- @@ -118,35 +133,3 @@ for a long slow ride we show total distance, for interval training we show time spent in HR zones ... ---- - -start and end marks can be drag targets but we also need to know where -they are when they're not being dragged - -selectedRange start, duration - - - - -## Postgres - -I run the postgresql devel server using Docker instead of changing my -global NixOS configuration, so that it's self-contained and I can -start and stop it when I want to - -``` -docker run -p 5432:5432 --name souplesse-postgres -e POSTGRES_USER=souplesse -e POSTGRES_PASSWORD=secret -d postgres -nix-shell -p postgresql --run "psql -h localhost -U souplesse -p 5432" -``` - -## Sample data - -The upload form deliberately doesn't have CSRF (for now, at least) so -that you can chuck a bunch of GPX files at it using curl - -``` - for i in tmp/Tracks/*.gpx ; do curl --form f1=@$i 'http://localhost:3000/upload'; done -``` - -This should be safe to do repeatedly because it will refuse upload of -tracks where the database already contains any points in the time -range of the uploaded track