From 0508ffa40f43f190e0568a49250c5acc5079cc1d Mon Sep 17 00:00:00 2001 From: duffn <3457341+duffn@users.noreply.github.com> Date: Sun, 26 Feb 2023 19:27:10 -0700 Subject: [PATCH] Fix Deno package README and docs --- .../docs/02-quick-starts/deno-run-examples.md | 8 +++++++- packages/deno/README.md | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/liveviewjs.com/docs/02-quick-starts/deno-run-examples.md b/apps/liveviewjs.com/docs/02-quick-starts/deno-run-examples.md index 1098933..28da822 100644 --- a/apps/liveviewjs.com/docs/02-quick-starts/deno-run-examples.md +++ b/apps/liveviewjs.com/docs/02-quick-starts/deno-run-examples.md @@ -23,10 +23,16 @@ Navigate to the `packages/deno` directory: cd packages/deno ``` +Install dependencies: + +```bash +npm install +``` + Then, start the Deno server with the examples: ```bash -deno run --allow-run --allow-read --allow-env src/example/autorun.ts +deno run --allow-run --allow-read --allow-write --allow-net --allow-env src/example/autorun.ts ``` Point your browser to [http://localhost:9001](http://localhost:9001) diff --git a/packages/deno/README.md b/packages/deno/README.md index 3a5b082..d3579c3 100644 --- a/packages/deno/README.md +++ b/packages/deno/README.md @@ -126,6 +126,9 @@ Check out the full LiveViewJS repository: `cd` to this package: `cd packages/deno` +Install dependencies: +`npm install` + Then run the following command: `deno run --allow-run --allow-read --allow-write --allow-net --allow-env src/example/autorun.ts`