Skip to main content

Posts

Showing posts from May, 2020

What is Azure IoT Hub ?

Pre-requisite Knowledge Before we start with the understanding of Azure IoT Hub, we should know- Azure Cloud The generic term IoT (Internet of Things) Introduction of Azure IoT Hub Okay, so let’s get started with the actual topic, i.e. Azure IoT Hub, so we’ll first understand that was is it and then why one should use it. Azure IoT Hub is a service hosted in Azure (a cloud platform by Microsoft) which basically manages the IoT devices registered with it by the developers. As it is a Hub, hence it also acts as a Central unit for communication between the devices/ IoT itself. So in simple tern, it can be like a central platform that helps manage the connected devices and also moderates in the communication between the devices as well. So whenever there is a question of authorization, like who’s the boss devices or the IoT Hub, then it is the IoT hub only. Feature of Azure IoT Hub: It is meant for a far high number of devices, so it can be scaled to millions of devices. It ...

What is Azure Pipelines ?

Pre-requisite Knowledge Before we start with the understanding of Azure Pipelines, we should know- What is Cloud What is Microsoft Azure Continuous Integration (CI) & Continuous Delivery (CD). Introduction of Azure Pipelines Before getting started into actual topic, let’s get ourselves a brief about the word, PIPELINE. So a Pipeline can be understood as a smooth, fast and automatically traversable path which consists of various elements in a sequential manner. Though it is often the case that the execution is followed in a parallel or tile allotted trend Now coming to Azure Pipelines, it is a simple yet evident service of Microsoft, which helps in automating the building and the testing phases of the projects. In short an Azure pipeline combines both the Continuous Integration (CI) & Continuous Delivery (CD). According to Microsoft docs, below are the supported languages for the Pipelining, as of now: Python Java JavaScript PHP Ruby C# C++ Go To impl...

Creating a URL Shortener Deplyment on Azure (NodeJS) part-2

For reference to the previous post, please refer to this link : Connecting-to-our-Database Now let's head to the package that we added config in the npm install command, what it does is that it will look for default.json the file inside config (folder) which we created earlier that will consist of the global variables for our project. Now let's open that default.json file and place the below snippet in it: { "mongoURI": "<ConnectionStringHere>" } We'll replace the Connection String from the cluster's string from our Atlas Account (if you still don't have an account, click here to create one) After Logging in to the Atlas, create a free Cluster and add a database user in it Now use the below code in the db.js the file inside the config (folder): const mongoose = require('mongoose'); const config = require('config'); // Grab the Connection string URL from the default.json file const db = confi...

URL Shortener with GitHub-Actions and Azure (NodeJS) part-1

Creating a URL Shortener using NodeJS Prerequisite Understanding HTML CSS NodeJS Software Installed A text editor (Prefereably Microsoft Visual Studio Code ) or some other text editor NodeJS Runtime Hardware Resource Internet Connection 😂 Abstract Getting to know about how to deal with a NoSQL Database (here in this repo, we'll use MongoDB ). Deploying the webapp to Azure via GitHub Actions . Table of Content Resource Links Demos - 1-Setting-Backend - Setting-up-Directory-structure - Building-a-basic-Front-End - Connecting-to-our-Database - Setting-up-the-Routes-for-the-app - Pushing-Project-to-GitHub-and-Azure Demos We'll cover the making of this whole repository in small demos If you didn't covered the basic EJS project repo, then visit this link 1-Setting-up-the-Backend On the Command line navigate to the directory where you want to save the project on your system, then type in the following commands m...

ASP .NET Core Website with VS 2019 IDE

Welcome back Readers, here this article we’ll learn about, how to create a Website using Microsoft Visual Studio IDE (note: it is now the Text Editor Visual Studio Code). We’re going to use Visual Studio 2019 Community Edition for Windows. So, let’s get started by opening Microsoft visual studio. And if you haven’t downloaded the software then click here to setup the development environment. I’ve enabled the Dark theme, why cause I like it 😀, you’re free to select a theme of your choice. After opening Visual Studio, click on Create a New Project On the next screen, Search for “Web” in the top given search bar and then select ASP.NET Core Web Application, then simply click on Next Give your project a name, then click on Next On the next screen, Keep the setting s as it as and select Web Application from the choices, then again click on Next. You’ll see something similar to the below image, the theme might be different. 😅 Le...

Hands-On ASP .NET Core WebApp

Here come the most awaited article on how to get started with the Hands- On with the ASP .NET Core via Visual Studio Code (VS Code: Text Editor) and a command line prompt. So if you’re new to the ASP .Net Core, then do have a look at this article . Though the Command line terminal is integrated inside VS Code, still we’ll use MS Command prompt. In the later articles we’ll use the integrated VSCode Interface to interact with the Terminal So to get started with ASP .NET Core: Open the Command prompt on windows or Terminal on Linux or bash on Mac accordingly. Navigate to the directory where we want to create our first Web App. Run the following command (without “” quotes): “dotnet new webApp -o myWebApp --no-https” “cd myWebApp” Now that we’ve run the above commands we can see that a folder is created in the name of “myWebApp” and it has a basic sample Web Application of the Application. Now let’s run the application by using the Command Line, and see what’s inside of t...

Introduction to ASP .NET Core

Hi everyone, welcome to the Introductory post of ASP .Net Core. In this article, we’ll learn about some ASP .Net Core and the required development environment for web apps. What is ASP .NET Core? Well if you’re still not aware of .Net Core then visit my previous post here . So basically ASP .NET Core is a .Net Core based high-performance framework to develop Web Apps. It provides a robust and smooth backend for your Dynamic Web sites. Why should I use it? Features of ASP .NET Core: Cross-Platform, means can be run on Windows, Linux & Mac Supports Razor Pages to embedded C# code in the front end Support for various popular Front End Frameworks Ready to be deployed on the Cloud, due to a well- defined configuration system Supports the below Hosts: Kestrel IIS sys Nginx Apache Docker Highly developed community for support And Yes, It’s a Microsoft’s product, so the Security comes alongside of it.😃 According to Microsoft , the difference between ASP .Net Cor...

What is .Net Core?

What is .Net? Well it is a question asked very frequently that what exactly is .Net and how can I get started with it. So let’s get to the answer real quick. .Net is a legacy framework of Microsoft initially build to make Windows Apps only. Though as the time changed, it evolved into something more agile and smooth, what we say it as .NET Core, which consists of the core set of libraries from the Legacy .Net Framework. .NET Core is technically a framework, can also be said to be a platform where one can make various kinds of Applications. Be it Windows Apps, Linux Apps, Web based Apps, Mobile Apps, IoT Apps, etc. It is a one stop solution to all the tech stacks. It is now call And you know what’s best about the new .Net Core? It is Free to use It is Open Source Cross- Platform Supports multiple Languages Can be used to make various kind of apps Made with Love by Microsoft Why should I Use it? According to Microsoft .Net ( here ) has significantly outrun the other compe...
Counter Widget