- on the same port:
- static-files-server designed for single-page-applications
- 404's fallback to index.html with a 200 status code
- written in typescript, usable as a command-line-interface (or runtime libraries)
- with many tests and continuous-integration
- and [optional] web-sockets micro-service manager
The most basic flavor of the core library - doesn't have websockets functionality
npx chef-express folder
open
http://localhost:4200
see chef-express for more information about command line parameters
On top of the Express adds socket.io for websockets functionality (at the same port as the http server)
npx chef-socket folder --plugin path/to/plugin.js
demo (with chat plugin)
https://chef-js-socket.herokuapp.com/
see chef-socket to find out more
Skipping Express and using the microwebsockets library that is alternative to socket.io
npx chef-uws folder --plugin path/to/plugin.js
demo (with chat plugin)
https://chef-js-uws.herokuapp.com/
see chef-uws to find out more
A base library for above 3 having the plugin handling and static-files serving functionalities inside
see chef-core to find out more