https://github.com/winkgroup/webserver
https://github.com/winkgroup/webserver
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/winkgroup/webserver
- Owner: WINKgroup
- License: mit
- Created: 2022-08-12T08:25:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-09T20:29:15.000Z (about 2 years ago)
- Last Synced: 2025-02-25T03:17:15.346Z (4 months 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)