Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/winkgroup/webserver


https://github.com/winkgroup/webserver

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# webserver
a REST web server helper functions

## Install
```bash
npm install @winkgroup/webserver
```

## Usage
to setup ioServer linked to current server without reject unauthorized:
```js
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

const app = express();

prepareApp(app, 'myApp')

const server = http.createServer(app)
this.ioApp = new IOServer(server, {
cors: {
origin: true,
},
});

listen({ server: server, name: 'myApp' });
```

## Maintainers
* [fairsayan](https://github.com/fairsayan)