Skip to content

Commit 2d60573

Browse files
authored
Update Default Code in index.ts
Creation of project in Elysia currently listens at 3000 and boilerplate is a little different than currently represented in Docs
1 parent 9311622 commit 2d60573

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/quick-start.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ cd hi-elysia
3434

3535
Open `src/index.ts`, and you should see:
3636
```typescript
37-
import { Elysia } from 'elysia'
37+
import { Elysia } from "elysia";
3838

39-
const app = new Elysia()
40-
.get('/', () => 'Hello Elysia')
41-
.listen(8080)
42-
43-
console.log(`🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`)
39+
const app = new Elysia().get("/", () => "Hello Elysia").listen(3000);
40+
41+
console.log(
42+
`🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`
43+
);
4444
```
4545

4646
Start a development server by:

0 commit comments

Comments
 (0)