@open-xchange/ui-middleware
v7.10.2
Published
App Suite UI specific middleware
Downloads
427
Maintainers
Keywords
Readme
App Suite UI Middleware
Starting
yarn start
Config
See .env-example.
Running tests
yarn test
will run the tests- Tests are located in the
test
directory
Source files
Are located in src
directory
Development
Use yarn dev
to start the middleware and
watcher which runs eslint and the tests on each file change.
Architecture
The middleware is stateless, this enables easy scaling and clustering.
Clustering
The middleware uses the native node clustering module.
To enable multiple processes, set a number of processes to spawn in the .env
file.
Frameworks
- express.js for HTTP stuff and routing
- Tests are using Mocha and Chai
- Clustering is done with node.js native cluster method
- Logging is done with Winston
Debugging
- Prerequisite: Node v.6.3.0+, Chrome 55+
- Use
yarn debug
to start the middleware in debugging mode - When using cluster please take a closer look at the stdout output when starting the server (usally ports 9229, 5859++). Please ensure these ports are also listet in the "Connection" tag