Local Development
Tools for running and testing your blocklet in a local development environment are crucial for an efficient workflow. This section covers the primary commands and concepts for building and debugging your blocklet directly on your local Blocklet Server instance before packaging it for production.
The local development process is centered around the blocklet dev
command, which installs and runs your blocklet from your current working directory in a special development mode, enabling features like live reloading and direct log streaming to your terminal.
The Development Workflow#
The typical development cycle involves starting your blocklet in development mode, making code changes, and seeing them reflected instantly without needing to manually rebuild or redeploy. This creates a tight feedback loop, speeding up the development process.
This workflow can be visualized as follows:
Key Development Tools#
To get started with local development, explore the following guides which provide detailed instructions on using the available tools.
Once your blocklet has been thoroughly developed and tested locally, you're ready to prepare it for distribution. Proceed to the Packaging & Versioning section to learn how to bundle your project.