.NET Core/ASP .NET Core vs Node.js: The basics

Node.js

As an alternative to Apache HTTP Server, Node.js was created for Apple’s and Linux operating systems. By being a JavaScript-based language Node.js is used for backend and frontend development and can be used with any JavaScript compliable language.

Within packages, you can find modules (code that has been prewritten) that allows you to cope with programming faster. You can find approximately a million packages within the Node.js repository. To easily secure new dependencies you can use an automatic lock-file mechanism.

.NET Core/ASP .NET Core

In this aspect, .NET Core is totally different, as it is based on C# and is solely used for .NET…


You can build anything with .NET. It’s one of the main reasons millions of developers choose .NET as the platform for their careers, and companies invest for their businesses. With .NET 5 we begin our journey of unifying the .NET platform, bringing .NET Core and Mono/Xamarin together in one base class library (BCL) and toolchain (SDK).

As we consider what building device applications will look like in a unified .NET, we see many devices across multiple platforms used, from Android and iOS to Windows and macOS. To address this need we are excited to announce a new first-class UI framework…


JavaScript Basics

Set of JavaScript basic syntax to add, execute and write basic programming paradigms in JavaScript.

On Page Script

Adding internal JavaScript to HTML

<script type="text/javascript"> //JS code goes here </script>

External JS File

Adding external JavaScript to HTML

<script src="filename.js"></script>

Functions

JavaScript Function syntax

function nameOfFunction () {
// function body
}

DOM Element

Changing content of a DOM Element

document.getElementById("elementID").innerHTML = "Hello World!";

Output

This will print the value of a in the JavaScript console

console.log(a);

Conditional Statements

Conditional statements are used to perform operations based on some conditions.

If Statement

The block of code to be executed, when the condition specified is true.

if (condition) {
// block of code to be executed…


In this article, we will be exploring the Unit of work and the Repository pattern with EF Core and .Net 5.

So what we will cover today:

  • What is Repository Pattern
  • Why do we want to use Repository Pattern
  • What is Unit of Work (UoW)
  • Benefits of UoW
  • Ingredients & Accounts
  • Code and Implementations

What is a Repository Pattern

The repository pattern is talked about a lot, especially in the API-and-microservice-heavy world that .net core shines.

The repository pattern is a strategy for abstracting the data access layer. So what is a data layer? …


Technology today is evolving at such a rapid pace, enabling faster change and progress, causing an acceleration of the rate of change, until eventually, it will become exponential. However, it is not only technology trends and top technologies that are evolving, a lot more has changed this year due to the outbreak of COVID-19 making IT professionals realize that their role will not stay the same in the contactless world tomorrow. And an IT professional in 2020–21 will constantly be learning, unlearning, and relearning (out of necessity if not desire).

What does this mean for you? It means staying current…


In this Tutorial, we are going to cover clean architecture with end to end support in ASP.NET 5.0. As we all know, its newly launched Framework officially released in the month of November 2020.

In this diagram, dependencies flow toward the innermost circle. The Application Core takes its name from its position at the core of this diagram. And you can see on the diagram that the Application Core has no dependencies on other application layers. The application’s entities and interfaces are at the very center. Just outside, but still in the Application Core, are domain services, which typically implement…


In this article let us learn the basics of the CQRS pattern using the MediatR NuGet package in .Net 5.

We know how a traditional web API works. It mainly consists of the CRUD operations. All four operations are tied together inside an API controller.

  • C — Create
  • R — Read
  • U — Update
  • D — Delete.

To decouple the application we make interfaces for our information access layer, inject it in the constructor of the API controller and perform the actions. This turns out great and all looks great. Yet, as your application grows in size the number of…


Microsoft has printed the third preview of .NET 6, the subsequent technology of the corporate’s software program growth platform that may end the components of the .NET unification begun in .NET 5.

Due as a manufacturing launch in November, .NET 6 is about to ship enhancements for cloud, desktop, and cell apps. Preview 2 was printed March 11, following the preliminary preview that arrived February 17. Month-to-month previews are deliberate between now and the manufacturing launch, which shall be supported for 3 years. Every preview will ship on .NET …


This tutorial is a quick and simple guide to Node.js, the Express framework focusing on fundamentals REST routes.

In this tutorial, we’ll set up a server for our API to live on. You can build an API with any programming language and server software, but we will use Node.js, which is the back-end implementation of JavaScript, and Express, a popular, minimal framework for Node.

Installation

Our first prerequisite is making sure Node.js and npm are installed globally on the computer. If you don’t have Node installed , download from here. Once installation is done verify your installation with below commands.

npm…


In this tutorial we are going to learn first Web API using ASP.Net Core using core 3.1. I am going to develop a sample application for an inventory REST service with basic operations.

Web API from ASP.NET Core is the same as the one from ASP.NET Core MVC. The Web API offers a simple communication way based on Representational State Transfer (REST). With REST, HTTP verbs such as GET, POST, PUT, and DELETE is used. …

Alpesh Patel

Technology Specialist and Full-Stack Developer. Find me on linkedin for more details https://www.linkedin.com/in/alpesh-patel-8b930952

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store