Skip to content

Commit

Permalink
Updating app files
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsislimadev committed Dec 16, 2024
1 parent 3f287d5 commit d8c1610
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Easy Back-end Node.js library

```sh
# bash

npm i abackend
```

Expand All @@ -23,16 +22,15 @@ npm i abackend
```json
{
"type": "module",
"scripts": {
"start": "node index.js"
},
...
}
```

### index.js
### write the server files

```js
// index.js

import { Server } from 'abackend'

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

### node start
### start

```sh
# bash

npm start
node index.js
```

## author
Expand Down

0 comments on commit d8c1610

Please sign in to comment.