File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -34,21 +34,21 @@ cd hi-elysia
34
34
35
35
Open ` src/index.ts ` , and you should see:
36
36
``` typescript
37
- import { Elysia } from ' elysia'
37
+ import { Elysia } from " elysia" ;
38
38
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
+ );
44
44
```
45
45
46
46
Start a development server by:
47
47
``` bash
48
48
bun dev
49
49
```
50
50
51
- Open your browser and go to ` http://localhost:8080 ` .
51
+ Open your browser and go to ` http://localhost:3000 ` .
52
52
53
53
You should see your server is running.
54
54
You can’t perform that action at this time.
0 commit comments