Coder Social home page Coder Social logo

santosvalen / netcoreblockly Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ignatandrei/netcoreblockly

0.0 1.0 0.0 9.67 MB

.NET Core API to Blockly - generate from WebAPI, Swagger, OData, GraphQL =>

Home Page: https://netcoreblockly.herokuapp.com/

License: MIT License

JavaScript 65.71% C# 21.61% PowerShell 0.28% CSS 0.35% HTML 12.00% Dockerfile 0.06%

netcoreblockly's Introduction

NETCore2Blockly

All Contributors

Build Status GitHub license NuGet Generate Thanks Outdated Licenses

What it does

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

Sample Project is TestBlocklyHtml from this repository

Contributors welcome! - please send email to email or see issues tab.

How to install NETCore2Blockly in a .NET Core 6 WebAPI / MVC application in 2 steps + run application

Step 1:

Install https://www.nuget.org/packages/NetCore2Blockly/ by running the following command in the Package Manager Console:

Install-Package NetCore2Blockly

Step 2:

//after app.MapControllers();
app.UseBlocklyUI(app.Environment);
app.UseBlocklyAutomation();

Run application

Run the application from VS and browse to /BlocklyAutomation/ or /BlocklyAutomation/index.html

That's all !( 2 steps + run )

How to install NETCore2Blockly in a .NET Core 5 WebAPI / MVC application in 2 steps + run application

Step 1:

Install https://www.nuget.org/packages/NetCore2Blockly/ 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)
{
  //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 application

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

Step 1

Install-Package Swashbuckle.AspNetCore -Version 5.6.3 Install-Package NetCore2Blockly -Version 3.2022.224.16

Step 2

 app.UseDefaultFiles();
 app.UseStaticFiles();
 app.UseSwagger();
 //code
 app.UseBlocklyUI(env);
app.UseEndpoints(endpoints =>
{
    endpoints.MapControllers();
    endpoints.UseBlocklyAutomation();
});

Run application

Run the application from VS and browse to /BlocklyAutomation/ or /BlocklyAutomation/index.html

Migrating from 1

Replace

using NetCore2Blockly; => using NetCore2BlocklyNew; app.UseBlocklyUI(); => app.UseBlocklyUI(env); Delete app.UseBlockly(); => Add => endpoints.UseBlocklyAutomation();

Navigate to /blocklyAutomation

Advanced usage remote data

For Remote Swagger ( CORS activated )

TBC: create BlocklyAutomation/assets/loadAtStartup/swaggers.json

For authentication - JSON Web Tokens

See Demos from https://netcoreblockly.herokuapp.com/

Also, it works with Active Directory enabled - see Authentication category.

For adding headers to Http requests

See https://netcoreblockly.herokuapp.com/BlocklyAutomation/automation/loadexample/jwt

For exporting data as CSV

See https://netcoreblockly.herokuapp.com/BlocklyAutomation/automation/loadexample/NetCoreBlockly_SaveCSV

For exporting data as image

See https://netcoreblockly.herokuapp.com/BlocklyAutomation/automation/loadexample/saveImage

Making a simple CRUD ( create ,read, update , delete ) application

See https://netcoreblockly.herokuapp.com/BlocklyAutomation/automation/loadexample/NetCoreBlockly_DeleteDepartment or search for department in demos

Adding your blocks

Create BlocklyAutomation\assets\loadAtStartup\customCategories.txt

More information

Download the source code, run the TestNetCorePackage project ( in the test folder ).

Testing

Contributors โœจ

Thanks goes to these wonderful people (emoji key):

If you want to contribute, that is plenty of work to be done -see issues tab .


Cosmin Popescu

๐Ÿ’ป

Adrian Nasui

๐Ÿ“–

Tudor Iliescu

๐Ÿ’ป

robertszabobv

๐Ÿ’ป

Noah Andrews

๐Ÿ’ป

Rene Escalante

๐Ÿ’ป

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

netcoreblockly's People

Contributors

ignatandrei avatar cosminpopescu14 avatar actions-user avatar allcontributors[bot] avatar robertszabobv avatar tudorgbiliescu avatar adriannasui avatar imgbotapp avatar noahandrews avatar dependabot[bot] avatar es-rene99 avatar mend-bolt-for-github[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.