Narrator is a VS Code extension for exploring Cratis Chronicle event stores.
-
Open the repository in VS Code.
-
Install dependencies and compile the extension:
cd /home/runner/work/Narrator/Narrator/Source/VSCodeExtension yarn install --immutable yarn compile -
Create or update your Chronicle CLI config at
~/.cratis/config.json:{ "activeContext": "default", "contexts": { "default": { "server": "chronicle://localhost:35000", "managementPort": 8080 } } } -
In VS Code, open
/home/runner/work/Narrator/Narrator/Source/VSCodeExtension. -
Press
F5to launch an Extension Development Host window. -
In the development host, open the Narrator view in the activity bar and connect to your local Chronicle instance.
For iterative development, run this in a separate terminal from /home/runner/work/Narrator/Narrator/Source/VSCodeExtension:
yarn watchDo not push directly to main. Use a branch and a pull request:
cd /home/runner/work/Narrator/Narrator
git checkout -b <your-branch-name>
git add .
git commit -m "Describe your change"
git push -u origin <your-branch-name>Then open a pull request targeting main and merge it after review and checks pass.