Home
Jorge Levy
Cancel

Node.js.- Common CLIs

List of common CLI and how to install using node.js I usually use Angular CLI https://angular.io/guide/setup-local npm install -g @angular/cli Azure Function Core Tools https://github.com/Azure/...

Node.js.- Update packages

Update to last version for a npm package npm update -g [package] List npm packges with version npm list -g --depth=0 List available versions for a npm packge npm view [package] versions List ...

Html/Css/Js.- Configure/Init projects

Html/Css/Js snippets Vanilla mkdir swa-vanilla cd swa-vanilla New-Item -Path . -Name "index.html" Html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"&gt...

C#.- Required Fields

How to use Required keyword for C# 11 Code using System.Diagnostics.CodeAnalysis; var book1 = new Book("Jean M Auel", "The Clan of the Cave Bear"); var book2 = new Book { Author = "Jean M A...

Azure Functions.- Http Trigger read query and post data

How to read query string in a get call and how to read body content on a post call for Http Triger Azure Functions Each escenary Read Query [Function("ReadQuery")] public async Task<HttpRespo...

Azure Functions.- Message Queue Messsage Properties

Message Properties on a Message Queue Azure Function [Function("Function1")] public void Run([ServiceBusTrigger("myqueue", Connection = "sbconnectionstring")] string myQueueItem, FunctionContext c...

C# - Http Client

Code Snippet to make a http api call with C# – Http Client with C# using (var client = new HttpClient()) using (var request = new HttpRequestMessage(HttpMethod.Get, "[url]")) using (var response...

Entity Framework Scaffold

How to add Entity Framework Nuget packages and how to scaffold a database context for a SQL Database. – Nuget Packages Update Update-Package Install Package Manager Install-Package Microsoft...

Hello World

Welcome Hello and welcome to my Knowledge Base docs site! On this site, I’ll try to document mostly code snippets, and some other technical documentation, for my reference and which I think will ...