National Poetry Month

    @holochain-playground/cli

    0.0.4 • Public • Published

    @holochain-playground/cli

    Small CLI utility to run the Holochain Playground connected to a real Holochain conductor.

    This is useful as an introspection tool, to understand what's really going on in your Holochain node.

    Running directly pointing to a running conductor

    npx @holochain-playground/cli ws://localhost:8888 ws://localhost:8889

    This URL should point to the Admin interfaces of the conductors.

    Setting up in an NPM hApp development environment that uses hc sandbox

    If you run this CLI from the same folder from which you run your hc sandboxes, it will automatically connect with the conductors that are live.

    1. Install the CLI with:
    npm install -D @holochain-playground/cli
    1. Add a playground script in your package.json:
    {
        ...
        "scripts": {
            "start": "concurrently \"npm run start:hc\" \"npm run playground\"",
            "start:hc": "hc s generate --run=8888",
            "playground": "holochain-playground"
        }
    }

    Now, when you run npm start, it will bring up the playground connected to the conductor.

    Keywords

    none

    Install

    npm i @holochain-playground/cli@0.0.4

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    3.02 MB

    Total Files

    7

    Last publish

    Collaborators

    • guillem.cordoba