# @shoio/server

> An comprehensible Web Framwork

Latest version **2.0.8** (published 2019-01-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install @shoio/server
pnpm add @shoio/server
yarn add @shoio/server
bun add @shoio/server
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.8 |
| Published | 2019-01-31 |
| First published | 2018-04-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 22.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Brendon Ferreira de Matos |
| Maintainers | brendonferreira |

## Links

- npm: https://www.npmjs.com/package/@shoio/server
- Repository: https://github.com/shoio/server
- Homepage: https://github.com/shoio/server#readme
- Issues: https://github.com/shoio/server/issues
- npm.io page: https://npm.io/package/@shoio/server

## Dependencies (4)

- [koa](https://npm.io/package/koa.md) ^2.6.2
- [koa-cors](https://npm.io/package/koa-cors.md) 0.0.16
- [koa-router](https://npm.io/package/koa-router.md) ^7.4.0
- [koa-bodyparser](https://npm.io/package/koa-bodyparser.md) ^4.2.1

## Recent versions

- 2.0.8 (latest) — 2019-01-31
- 2.0.7 — 2019-01-31
- 2.0.6 — 2019-01-31
- 2.0.5 — 2019-01-21
- 2.0.4 — 2019-01-21
- 2.0.3 — 2019-01-17
- 2.0.2 — 2019-01-17
- 2.0.1 — 2019-01-10
- 2.0.0 — 2019-01-03
- 0.0.11 — 2018-04-12
- 0.0.1 — 2018-04-12

## README

# Shoio Server

## Installing

  `npm install --save @shoio/core @shoio/server`

## Getting Started

```javascript
import { Shoio } from "@shoio/core";
import { ShoioHttpServer } from "@shoio/server";

class PingService extends Shoio {

    mountRouter(http) {
        http.get('ping', this.ping)
    }

    routerMounted( server, config ) {
        console.log( 'Server running in port', config.port )
    }

    ping() {
        return 'pong'
    }

}

const app = new PingService({
    plugins: [
        new ShoioHttpServer({boot: true})  
    ]
})

app.mount()
```

---
_Source: https://npm.io/package/@shoio/server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
