cosminpopescu14 / NETCoreBlockly

.NET Core API to Blockly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


All Contributors

.NET Core API to Blockly

Build Status GitHub license NuGet

What it does

NETCore2Blockly generates Blockly blocks for each of your controller actions.

Demo at ( play with the links from the bottom)

Demo Video at

How to install NETCore2Blockly in a .NET Core 3.1 WebAPI / MVC application

Step 1:

Install by running the following command in the Package Manager Console:

Install-Package NetCore2Blockly

Step 2:

Modify Startup.cs by adding

public void ConfigureServices(IServiceCollection services)
            //last line
public void Configure(IApplicationBuilder app, IWebHostEnvironment env){
        //if you plan to use as html, do not forget app.UseStaticFiles
        //last line

Step 3:


To see the UI , please add

public void Configure(IApplicationBuilder app, IWebHostEnvironment env){
       app.UseBlocklyUI(); // you can customize (with BlocklyUIOptions argument )header name, start blocks, others... 
       //you can add  storage like local storage or sqlite 
       //app.UseBlocklySqliteStorage() ; // other nuget package
       //you can add swaggers also
      //app.UseBlocklySwagger("petstore", "")

Step 4:

Run the application and browse to /blockly.html

That's all!


Thanks goes to these wonderful people (emoji key):

Cosmin Popescu


Adrian Nasui


Tudor Iliescu




This project follows the all-contributors specification. Contributions of any kind welcome!

ezoic increase your site revenue


.NET Core API to Blockly

License:MIT License


Language:JavaScript 63.3%Language:C# 25.5%Language:HTML 10.6%Language:PowerShell 0.4%Language:Dockerfile 0.1%