Skip to content

Commit 8d2b803

Browse files
committed
docs: drop code commentary readers haven't seen yet
The reader hasn't read main.ts at this point, so notes about the import.meta.main guard and the test importing the handler directly are detail without context. Trim to a one-line summary of what each file is for.
1 parent 8e6ea2e commit 8d2b803

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

runtime/getting_started/first_project.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@ my_project
2929
```
3030

3131
[`deno.json`](/runtime/fundamentals/configuration/) holds your project
32-
configuration. `main.ts` contains a small HTTP server built on
33-
[`Deno.serve`](/api/deno/~/Deno.serve), showing off the built-in HTTP server,
34-
`Response.json()`, and TypeScript working out of the box. The handler is
35-
exported and guarded by `import.meta.main`, so `main_test.ts` can import and
36-
call it directly without binding to a port.
32+
configuration. `main.ts` is a small HTTP server built on
33+
[`Deno.serve`](/api/deno/~/Deno.serve), and `main_test.ts` has the tests for it.
3734

3835
## Run your project
3936

@@ -46,7 +43,7 @@ cd my_project
4643
You can run this program with the following command:
4744

4845
```bash
49-
$ deno main.ts
46+
$ deno -N main.ts
5047
Listening on http://localhost:8000/
5148
```
5249

0 commit comments

Comments
 (0)