From 628efd763083da972917142718b2e8229a54aad8 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sun, 20 Nov 2022 00:51:46 +0100 Subject: [PATCH] Add README --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..82fb7b1 --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +### How do I load the dev environment? + +Pick your poison: + + nix-shell + direnv allow + +Both require `nix` configured with a `nixpkgs` channel. + +### How to I get my user token? + +Log in using a browser, then grab it from the local browser DB. + +### How to I set my user token? + +Set it as the `CARDS_ACCESS_TOKEN` environment variable, somehow. ( Have a look at `.envrc` ;) ) + +### How do I list my style ID's? + + ./api.py get-styles | jq .[].id + +### How do I pull all my styles and cards? + + ./pull.sh && find pvv/ + +_(The pull is destructive.)_ + +### How do I build a style? + + make render-style-48-file + +Where `49` is the style ID.