We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Here's an example of a typical directory structure.
├── [your_project_name]/ │ ├── index.js <-- optional Main script │ ├── package.json | ├── config/ │ │ ├── default.json │ ├── handlers/ │ ├── services/ │ ├── middleware/ │ ├── swagger/
Here's what happens when you start the BlueOak server for this project:
(In text:
config/
default.json
${NODE_ENV}.json
<stanza-name>.json
init()
handlers/
middleware/
services/
node_modules/
Call the init() functions per the dependency tree
Load spec definition(s) from swagger/
swagger/
Initialize the swagger validator with the spec
“Wire” the swagger validator to the associated handler (x-handler property in the swagger spec)
Expose the swagger API to the network
)