Skip to content

Commit

Permalink
Updating README.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsislimadev committed Oct 31, 2023
1 parent d04d3f5 commit 3e04c6a
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,29 @@ Easy Back-end Node.js library

## how to install

```bash
```sh
# bash

npm i @brtmvdl/backend
```

## how to use

```js
// index.js
### package.json

```json
{
"type": "module",
"scripts": {
"start": "node index.js"
},
...
}
```

### index.js

```js
import { Server } from '@brtmvdl/backend'

const server = new Server()
Expand All @@ -30,6 +42,8 @@ server.get('/', (req, res) => res.setJSON({ id: Date.now() }))
server.listen(80)
```

### node start

```sh
# bash

Expand Down

0 comments on commit 3e04c6a

Please sign in to comment.