Skip to content

Commit a42b025

Browse files
authored
Merge pull request #125 from patrickrauls/patch-2
Update Default Code in index.ts
2 parents c2a3f84 + 0a040f5 commit a42b025

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/quick-start.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,21 @@ 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:
4747
```bash
4848
bun dev
4949
```
5050

51-
Open your browser and go to `http://localhost:8080`.
51+
Open your browser and go to `http://localhost:3000`.
5252

5353
You should see your server is running.
5454

0 commit comments

Comments
 (0)