Building a Blockly app
From a user’s perspective, Blockly is an intuitive, visual way to build code. From a developer’s perspective, Blockly is essentially a text box that contains syntactically correct user-generated code. Blockly can export blocks to many languages, including these popular options:
Here’s a high-level breakdown of what goes into building a Blockly app:
- Integrate the Blockly editor. The Blockly editor at its simplest consists of a toolbox to store block types, and a work space for arranging blocks. Learn more about integrating Blockly in the Get Started docs for Web or Android.
- Create your app’s blocks. Once you’ve got Blockly in your app, you need to create blocks for your users to code with, then add them to your Blockly toolbox. Learn how in Create Custom Blocks Overview.
- Build the rest of the app. By itself, Blockly is just a way to generate code. The heart of your app is in deciding what to do with that code
If you want to take a closer look at Blockly you can see it in action right here or you can go straight to the source. Either way I’m sure you’ll find Blockly to be an interesting approach to learning how to code.