Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zetaret/protoss-nodejs-basic
Basic ProtoSS Node.js Server
https://github.com/zetaret/protoss-nodejs-basic
html http http2 https javascript json module nodejs protoss router server typescript
Last synced: 27 days ago
JSON representation
Basic ProtoSS Node.js Server
- Host: GitHub
- URL: https://github.com/zetaret/protoss-nodejs-basic
- Owner: ZetaRet
- License: mit
- Created: 2019-09-13T20:22:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-29T12:34:59.000Z (over 1 year ago)
- Last Synced: 2023-05-29T14:23:34.418Z (over 1 year ago)
- Topics: html, http, http2, https, javascript, json, module, nodejs, protoss, router, server, typescript
- Language: JavaScript
- Homepage:
- Size: 381 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## ProtoSS Node.js Server
### Features of the server
- d.ts types
- global configuration
- environment configuration
- fileless startup
- examples
- asynchronous server with pipeline
- subserver with route management
- router class on the side
- custom headers
- custom prototypes
- middlewares
- content parsers
- directory listing per endpoint for static assets and streaming
- automated json, string or buffer, and promise-based response
- connectivity between servers
- html support### Description
Simple printed server from [ProtoSS Packages](https://github.com/ZetaRet/protoss) using [XeltoSS](https://github.com/ZetaRet/protoss/blob/master/xeltoss/XeltoSS.md) synthesis.
`GZIP` is applied automatically using `content-type header` and `Apache/NGINX` configuration based on root folder.
`Cookies` are set based on `PHP` __setcookie__ function or internal JS mechanism.
Create a `server subclass` of __ProtoSSChe__ and `override methods`.
Folder `modules` contains base extends of the `index` server, including sample `stats.json` per server.
`FileSystem` module is used to maintain `stats.json` and current number of requests per `5s interval`. Each reload of server `reads the file`.
Server executes requests non-stop and labels them by unique id **__reqid**, subclass server must extend functionality and create workers using [SkytoSS](https://github.com/ZetaRet/protoss/blob/master/skytoss/SkytoSS.md).
[Preview server](https://protoss.zetaret.com/node/)
## [Wiki Pages](https://github.com/ZetaRet/protoss-nodejs-basic/wiki)
- [Change log](https://github.com/ZetaRet/protoss-nodejs-basic/wiki/Change-log)
- [HowTo](https://github.com/ZetaRet/protoss-nodejs-basic/wiki/HowTo)