Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/winkgroup/webserver
https://github.com/winkgroup/webserver
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/winkgroup/webserver
- Owner: WINKgroup
- License: mit
- Created: 2022-08-12T08:25:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-09T20:29:15.000Z (over 1 year ago)
- Last Synced: 2025-01-17T23:37:42.423Z (9 days ago)
- Language: TypeScript
- Size: 177 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)