Thanks to visit codestin.com
Credit goes to github.com

Skip to content

adriannasui/NETCoreBlockly

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NETCoreBlockly

.NET Core API to Blockly

Build Status GitHub license NuGet

What it does

It generate Blockly blocks for each of your controller actions.

Demo at https://netcoreblockly.herokuapp.com/blockly.html

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

Step 1:

Install https://www.nuget.org/packages/NetCore2Blockly/ , Install-Package NetCore2Blockly

Step 2:

Modify Startup.cs , add

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

Step 3:

Download from https://github.com/ignatandrei/NetCore2Blockly/docs/blockly.zip

and put all contents in a wwwroot in the root of your site

Step 4:

Run the application and browse to /blockly.html

That's all!

About

.NET Core API to Blockly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 55.2%
  • HTML 26.1%
  • C# 18.0%
  • Other 0.7%