osseus

2.0.2 • Public • Published

JavaScript Style Guide

Osseus

Osseus modular web server

Install

$ npm install osseus

after installing update package.json to include "osseus": "~x.y.z" instead of "osseus": "^x.y.z"

see semantic-versioning

Osseus Modules

In order to use any one of those modules you should install it on your app

Usage

First, create index.js:

const Osseus = require('osseus')
 
const main = async () => {
  const osseus = await Osseus.init()
}
 
main()

Basic example using CLI configuration

$ node index.js --OSSEUS_SERVER_PORT 8888 --OSSEUS_SERVER_DEPENDENCIES ["'logger'"] --DEBUG true --OSSEUS_LOGGER_LOG_LEVEL debug

For more configuration options see osseus-config

Dependencies

Osseus modules by default are initialized parallely.

In order for modules to initialize after specific modules we have the "dependencies" configuration setting.

Generally speaking, if you wish for one osseus module to initialize before another you'll have to add the following configuration param: OSSEUS_MODULE-1_DEPENDENCIES: ['module-2']

For example, if we wish to have an osseus-server but make sure we have osseus-logger before that we will add to our configuration: OSSEUS_SERVER_DEPENDENCIES: ['logger']

Contributing

Please see contributing guidelines.

License

Code released under the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i osseus

Weekly Downloads

3

Version

2.0.2

License

MIT

Unpacked Size

10.2 kB

Total Files

8

Last publish

Collaborators

  • liorrabin