Skip to content
Andrei Ignat edited this page Sep 15, 2022 · 6 revisions

Existing

C# - .NET Core 3.1 - https://www.nuget.org/packages/NetCore2Blockly/3.2022.224.16

C# - .NET Core 5-6 - https://www.nuget.org/packages/NetCore2Blockly/

Node - NPM - https://www.npmjs.com/package/node2-blockly

I need the same idea of packages as for https://treblle.com/how-it-works/laravel

For a new language

Create a site with

Define HTTP API

Create a site that has the following URLS

/basic/add/x/y => returns x+y

/basic/substract/x/y => returns x -y

/advanced/multiplication/x/y => returns x *y

/advanced/divice/x/y => returns x / y

Add a swagger generator

Depending on a lanaguage, add a swagger generator for the above operations

Create a package

Create a package that register a route, /BlocklyAutomation, that will serve, by default , /BlocklyAutomation/index.html and the other css/javascript/assets that can be found at https://github.com/ignatandrei/BlocklyAutomation/tree/main/docs from the package. But , if they are found on the HDD on the specified route, please be sure to serve those.

Reference the package

Add the package to the site and browse to /BlocklyAutomation . Assert the index.html is shown and you have something similar with https://ignatandrei.github.io/BlocklyAutomation/ .

Contact me after this to modify assets.