Files
blockly/demos/codelab

Blockly for the Web codelab

Code for the Blockly for the Web codelab.

In this codelab, you'll learn how to use Blockly JavaScript library to add a block code editor to a web application.

What you'll learn

  • How to add Blockly to a sample web app.
  • How to set up a Blockly workspace.
  • How to create a new block in Blockly.
  • How to generate and run JavaScript code from blocks.

Example code for each step of the codelab is available from the completed directory.