.NET Core API to Blockly
NETCore2Blockly generates Blockly blocks for each of your controller actions.
Demo at https://netcoreblockly.herokuapp.com/blockly.html ( play with the links from the bottom)
Demo Video at https://www.youtube.com/watch?v=GptkNWjmCzk
Install https://www.nuget.org/packages/NetCore2Blockly/ by running the following command in the Package Manager Console:
Install-Package NetCore2Blockly
Modify Startup.cs by adding
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();
}To see the UI , please add
public void Configure(IApplicationBuilder app, IWebHostEnvironment env){
app.UseBlocklyUI();
}Download from the blockly.zip and put all contents in a wwwroot in the root of your site
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 💻 |
robertszabobv 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!