-
-
Notifications
You must be signed in to change notification settings - Fork 8
netcore
NETCore2Blockly generates Blockly blocks for each of your controller actions.
Demo at https://netcoreblockly.herokuapp.com/
Demo Video at https://www.youtube.com/watch?v=GptkNWjmCzk
NuGet https://www.nuget.org/packages/NetCore2Blockly
How to install NETCore2Blockly in a .NET Core 6 WebAPI / MVC application in 2 steps + run application
Sample project: https://github.com/ignatandrei/BlocklyAutomation/tree/main/src/examples/netcore6/NetCore6Blockly
Install https://www.nuget.org/packages/NetCore2Blockly/ by running the following command in the Package Manager Console:
Install-Package NetCore2Blockly
//after app.MapControllers();
app.UseBlocklyUI(app.Environment);
app.UseBlocklyAutomation();
Run the application from VS and browse to /BlocklyAutomation/ or /BlocklyAutomation/index.html
How to install NETCore2Blockly in a .NET Core 5 WebAPI / MVC application in 2 steps + run application
Sample project: https://github.com/ignatandrei/BlocklyAutomation/tree/main/src/examples/netcore5
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)
{
//somewhere generate the swagger
services.AddSwaggerGen(c =>
{
c.SwaggerDoc("v1", new OpenApiInfo { Title = "My API", Version = "v1" });
});
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
//last line
app.UseDefaultFiles();
app.UseStaticFiles();
app.UseSwagger();
app.UseBlocklyUI(env);
//code
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
endpoints.UseBlocklyAutomation();
});
}
Run the application from VS and browse to /BlocklyAutomation/ or /BlocklyAutomation/index.html
How to install NETCore2Blockly in a .NET Core 3.1 WebAPI / MVC application in 2 steps + run application
Install-Package Swashbuckle.AspNetCore -Version 5.6.3 Install-Package NetCore2Blockly -Version 3.2022.224.16
app.UseDefaultFiles();
app.UseStaticFiles();
app.UseSwagger();
//code
app.UseBlocklyUI(env);
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
endpoints.UseBlocklyAutomation();
});
Run the application from VS and browse to /BlocklyAutomation/ or /BlocklyAutomation/index.html
Replace
using NetCore2Blockly; => using NetCore2BlocklyNew; app.UseBlocklyUI(); => app.UseBlocklyUI(env); Delete app.UseBlockly(); => Add => endpoints.UseBlocklyAutomation();
Navigate to /blocklyAutomation
TBC: create BlocklyAutomation/assets/loadAtStartup/swaggers.json
See Demos from https://netcoreblockly.herokuapp.com/
Also, it works with Active Directory enabled - see Authentication category.
See https://netcoreblockly.herokuapp.com/BlocklyAutomation/automation/loadexample/jwt
See https://netcoreblockly.herokuapp.com/BlocklyAutomation/automation/loadexample/NetCoreBlockly_SaveCSV
See https://netcoreblockly.herokuapp.com/BlocklyAutomation/automation/loadexample/saveImage
See https://netcoreblockly.herokuapp.com/BlocklyAutomation/automation/loadexample/NetCoreBlockly_DeleteDepartment or search for department in demos
Create BlocklyAutomation\assets\loadAtStartup\customCategories.txt
Download the source code, run the TestNetCorePackage project ( in the test folder ).