From 6ac181fca7aca4ed0c4ab708ace43425fb710178 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Fri, 15 Nov 2024 22:56:51 -0800 Subject: [PATCH] add some notes in the README and flake.nix A couple hints to remind me what I'm doing --- README.md | 19 +++++++++++++++++++ flake.nix | 3 +++ 2 files changed, 22 insertions(+) diff --git a/README.md b/README.md index 185c3e6..55c1e32 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,25 @@ I also need to find out a solution to virtual tags, and especially ID I need it to keep integration with Kitaab. That largely means a _json interface, which is fine. Some compatibility layer with Taskwarrior for taskwarrior-tui would be cool too, but isn't yet on the goal list. +## MVP + +For me to start using it one more piece of the puzzle needs to be worked out: + +Identity. I am vaguely aware of how to generate a room, and then use the room id to sync across the network +But that doesn't stop anybody from then connecting to your room, and messing up your data +For now, something simple like creating a key in localStorage and using that in some fashion to validate that the data is from the right person. I'll then need some kind of key transfer thing, such that we can authorize or generate subkeys. + +I'm not really sure how that will work yet. + +## Parsing + +For the react application (in `mast-react-app`) I actually had to copy the parser to `src/lib/` in order to get it to build. +The command to build the parsers is + +``` +npx peggy --format es command_js.peg +``` + ## Status A vaguely unordered list of the next tasks to be accomplished, and those recently completed diff --git a/flake.nix b/flake.nix index faf15b1..fcef21a 100644 --- a/flake.nix +++ b/flake.nix @@ -96,6 +96,9 @@ devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ go pigeon nodejs sqlite git-bug openssl ]; + # TODO: + # Shell Aliases don't work for direnv because they're not shell portable + # Find an alternative to this shellHook = '' alias start-dev='npm run dev' alias build-dev='npm run build'