• Stars
    star
    165
  • Rank 221,761 (Top 5 %)
  • Language
    HTML
  • License
    MIT License
  • Created about 4 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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://ignatandrei.github.io/BlocklyAutomation/

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://ignatandrei.github.io/BlocklyAutomation/

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

For adding headers to Http requests

See https://ignatandrei.github.io/BlocklyAutomation/BlocklyAutomation/automation/loadexample/jwt

For exporting data as CSV

See https://ignatandrei.github.io/BlocklyAutomation/BlocklyAutomation/automation/loadexample/NetCoreBlockly_SaveCSV

For exporting data as image

See https://ignatandrei.github.io/BlocklyAutomation/BlocklyAutomation/automation/loadexample/saveImage

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

See https://ignatandrei.github.io/BlocklyAutomation/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!

More Repositories

1

Exporter

Export to Office(Excel,Word) , Pdf,OpenDocumentFormat( ODS,ODT )from Classes/DataSet/DataTable/IDataReader/JSON/CSV/RSS/
C#
93
star
2

AOP_With_Roslyn

Roslyn AOP
C#
74
star
3

RSCG_Examples

Roslyn Source Code Generators with Examples
HTML
51
star
4

BlocklyAutomation

VisualAPI - LowCode Macros for YOUR API / HTTP Calls : https://visualapi.azurewebsites.net/
JavaScript
31
star
5

WebAPI2CLI

Execute ASP.NET Core WebAPI from Command Line
C#
29
star
6

Export_Word_Excel_PDF_CSV_HTML

this project shows how to export to word / excel / pdf / csv / html
C#
16
star
7

ppt2reveal

Powerpoint to reveal
15
star
8

MVC5Encrypt

Encrypt / decrypt query string parameters with MVC 5
C#
14
star
9

stankins

General data dealing site
HTML
13
star
10

OneNoteOCR

OCR with one note
C#
12
star
11

AspNetCoreImageTagHelper

First Release for rendering base 64 images in ASP.NET Core. See https://en.wikipedia.org/wiki/Data_URI_scheme for more details.In the _ViewImports @addTagHelper *, AspNetCore.Mvc.ImageBase64 "
C#
12
star
12

IsThisTaxiLegal

C#
8
star
13

ThreadSafeObject

Making any call to an object thread safe
C#
8
star
14

appSettingsEditor

app settings editor - powered by Roslyn
JavaScript
7
star
15

EFRecordAndPlay

Entity Framework Record And Play
C#
6
star
16

netCoreAlphabet

.NET Core Cards alphabet
TypeScript
5
star
17

RazorHelpFile

This file generates help view files for each view in an ASP.NET MVC project.
5
star
18

WFH_Resources

Work from Home Resources
JavaScript
5
star
19

QueryViewer

QueryViewer
TSQL
5
star
20

console_to_saas

A book where you can learn how to build a SAAS product incrementally
C#
5
star
21

Presentations

presentations
JavaScript
4
star
22

RSCG_AMS

a Roslyn Source Code Generator for About My Software
C#
4
star
23

TILT

Things I Learned Today
C#
3
star
24

SideCarCLI

C#
3
star
25

MVC4Microformats

C#
3
star
26

CountryTagHelper

Country Tag Helper for ASP.NET Core
C#
3
star
27

RSCG_JSON2Class

Transform any json ( including appsettings ) into a class
C#
3
star
28

tinyTypes

tiny types in C#
C#
3
star
29

RSCG_TimeBombComment

Time Bomb comment for technical debt
C#
3
star
30

AssemblyInfoTT

Assembly info same for multiple projects
C#
3
star
31

RSCG_UtilityTypes

Omit and Pick from TypeScript : https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys
C#
3
star
32

RSCG_Templating

Templating for generating everything from classes, methods from a Roslyn Code Generator
C#
3
star
33

Interpreter

Interpreter for creating strings from usual data
C#
2
star
34

CatalogRo

Resurse catalog RO
TypeScript
2
star
35

ToolsAndUtilities

tools and utilities in .NET
JavaScript
2
star
36

MicroservicesPortChooser

If you have multiple microservices and do not know how to choose a port, generate same static port number every time
C#
2
star
37

RecordVisitors

Record Latest visitors for .NET Core
C#
2
star
38

WIFIHotSpot

WIFIHotSpot
PowerShell
1
star
39

YouTube

youtube playlist
C#
1
star
40

RSCG_WaitAndOptions

Wait and See compiling options
C#
1
star
41

RSCG_Static

Roslyn Source Code Generator - transform static classes into instances and interfaces
C#
1
star
42

FunctionsDI

DI for functions
C#
1
star
43

PowershellUtils

Powershell utilities
PowerShell
1
star
44

toolsForProgrammers

tools for programmers. See http://msprogrammer.serviciipeweb.ro/programmer-tools/ .
1
star
45

tools

My Tools
C#
1
star
46

RSCG_Utils

Roslyn Source Code Generators Utils
C#
1
star
47

VisualAPI_GithubNextBlocks

Visual API - LowCode Blocklly for Github Next Blocks
TypeScript
1
star
48

FileExtension

Recognizers of file extensions
C#
1
star
49

4SqDayHistory

Four square history - on desktop
C#
1
star
50

InfoValutar

Exchange rates for everyone
C#
1
star
51

Decl230

declaratia 230 Romania
JavaScript
1
star
52

WorldBankAPi

World Bank API - see https://datahelpdesk.worldbank.org/knowledgebase/articles/889386-developer-information-overview
C#
1
star
53

RSCG_Decorator

Decorator for classes , permit to know when method start and ends
C#
1
star
54

RSCG_InterceptorTemplate

Interceptor templating
C#
1
star