Wondering what’s next for npm?Check out our public roadmap! »

    @whook/example
    TypeScript icon, indicating that this package has built-in type declarations

    8.0.4 • Public • Published

    @whook/example

    A basic Whook server

    GitHub license NPM version

    This is a basic Whook server demonstrating the various usages of the Whook framework to build REST APIs.

    Usage

    To run the server in production:

    npm it
    NODE_ENV=production npm start

    Dev

    Start the server in development:

    # Simple dev mode
    npm run dev
    
    # Watch mode
    npm run watch

    Create a new endpoint / service / provider or command:

    npx whook create

    List available commands:

    npx whook ls

    Generate API types:

    npm run apitypes

    Debug

    Execute a handler in isolation:

    npx whook handler --name putEcho --parameters '{"body": { "echo": "YOLO!" }}'

    Debug whook internals:

    DEBUG=whook npm run dev

    Debug knifecycle internals (dependency injection issues):

    DEBUG=knifecycle npm run dev

    Authors

    License

    MIT

    Install

    npm i @whook/example

    DownloadsWeekly Downloads

    15

    Version

    8.0.4

    License

    MIT

    Unpacked Size

    530 kB

    Total Files

    256

    Last publish

    Collaborators

    • avatar