Giter Site home page Giter Site logo

meteor-blockly's Introduction

Google Blockly In Meteor

meteor add blockly:blockly

This is a set of Meteor packages which wraps Google Blockly.

Usage

blockly:blockly is the main and core package, it includes the blockly core. But only blockly "itself", without common blocks, code generators, etc.
You can use core blocks by adding blockly:blocks, which includes commonly used blocks such as repeat n do ..., if ... do ....
By adding blockly:javascript, you'll be able to use the JavaScript code generator, which can turn your workspace into actual JavaScript code. Same for Python, Dart and PHP.

Documentation

See Blockly Project Page

Developing

  1. Clone the repo, make sure to use --recursive git clone --recursive https://github.com/adrianliaw/meteor-blockly
  2. Link the package to your local testing meteor app ln -s {/path/to/this}/blockly {/path/to/testing/app}/packages/blockly:blockly

Roadmap

I hope this package can take advantage of Blaze, wrap the original API, create reusable Blaze templates.

meteor-blockly's People

Contributors

adrianliaw avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

jm4r7in

meteor-blockly's Issues

Procedural blocks breaking

Hey, thanks for the wrapper package! I'm just having an issue with the procedural/function blocks category in the toolbox breaking after it's clicked on, giving the error "Uncaught ReferenceError: goog is not defined at Blockly.BlockSvg.setProcedureParameters." Any ideas? Thanks again for the package!

Usage ?

Thanks for the package, but I can't manage to use it.
Could you detail a bit the usage, please ?
Thank you !

Blockly workspace templates

Inject Blockly workspace using Blaze templates, here's an example:

{{#B.workspace}}
  {{#B.toolbox}}
    {{#B.category "Math"}}
      {{> B.block "math_number"}}
      {{> B.block "math_trig"}}
    {{/B.category}}
  {{/B.toolbox}}
{{/B.workspace}}

And if you prefer jade:

+B.workspace
  +B.toolbox
    +B.category("Math")
      +B.block("math_number")
      +B.block("math_trig")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.