Skip to content

Commit 66c825f

Browse files
committed
docs: explain -N flag and tighten remaining prose
- Add a one-line note explaining the -N flag and linking to security, so a first-project reader doesn't hit it cold. - Drop the run-subcommand inference paragraph; the -N example obscures the point it was making. - Collapse the test-runner intro from three sentences to one. - Rewrite the closing CTAs ('You're set' and 'To go deeper') with tighter copy and a non-'here' link anchor.
1 parent 8d2b803 commit 66c825f

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

runtime/getting_started/first_project.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,14 @@ $ deno -N main.ts
4747
Listening on http://localhost:8000/
4848
```
4949

50-
When you pass a file path directly, Deno infers the `run` subcommand, so
51-
`deno main.ts` is equivalent to `deno run main.ts`.
50+
The server needs network permission, granted here via `-N` (short for
51+
`--allow-net`). See [security](/runtime/fundamentals/security/) for more.
5252

5353
Open the URL in your browser to see the response.
5454

5555
## Run your tests
5656

57-
Deno has a [built in test runner](/runtime/fundamentals/testing/). You can write
58-
tests for your code and run them with the `deno test` command. Run the tests in
59-
your new project with:
57+
Run the tests with [`deno test`](/runtime/fundamentals/testing/):
6058

6159
```bash
6260
$ deno test
@@ -67,9 +65,7 @@ handler returns 404 for unknown route ... ok (1ms)
6765
ok | 2 passed | 0 failed (3ms)
6866
```
6967

70-
Now that you have a basic project set up you can start building your
71-
application. Check out our [examples and tutorials](/examples/) for more ideas
72-
on what to build with Deno.
68+
You're set. Browse our [examples and tutorials](/examples/) for ideas on what to
69+
build next.
7370

74-
You can
75-
[learn more about using TypeScript in Deno here](/runtime/fundamentals/typescript).
71+
To go deeper, see [Using TypeScript in Deno](/runtime/fundamentals/typescript/).

0 commit comments

Comments
 (0)