Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lixinyang123 committed Apr 1, 2024
1 parent 212e022 commit 40f52d3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ yarn add @lixinyang123/plankton

## Quick Start

You need create a nodejs project first
You need create a nodejs project first.

```bash
yarn init
Expand All @@ -36,7 +36,7 @@ mkdir src
touch src/main.js
```

copy this code to `src/main.js`
copy this code to `src/main.js`.

```javascript
import { Plankton } from '@lixinyang123/plankton'
Expand All @@ -46,13 +46,14 @@ new Plankton()
res.end('hello world')
})
.build()
.start(8080)
.start()
```

at last, you can start the webapp
Finally, you can launch your first web app.

```bash
node src/main.js
curl localhost:8080
```

## Usage
Expand Down

0 comments on commit 40f52d3

Please sign in to comment.