How to upgrade your ASP.NET Core application from 1.0 to 1.1

TL;DR; In this blog, We are going to learn how we can upgrade your ASP.NET Core application from 1.0 to 1.1.  Now Microsoft has release 1.1 before few months, So in this blog, we will see how you can upgrade your ASP.NET 1.0 application to ASP.NET 1.1 core application.

Where to download 1.1 SDK and Tooling for Visual Studio 2015: You can download 1.1 SDK and Tools from the following link.

Here different tooling is also available for the Visual Studio 2015 and Visual Studio 2017. For this blog post, We are going to use Visual Studio 2015.

How to upgrade to ASP.NET core 1.0 to ASP.NET core 1.1: So let’s get started. I’m going to create a new ASP.NET Core 1.1 application and then we will move it to ASP.NET 1.1. So let’s create an ASP.NET core 1.0 application and then let’s upgrade it to 1.1. I have created a new application like following.


How to upload file with Express,Pug and Multer in Node.js

TL;DR; In this blog post, We are going to learn how to upload a file with Express, Pug, and Multer in Node.js. In this blog post, we will learn how we can upload file with multer middleware in express framework with node.js

Creating Express App, Multer and other common code: So here in for the demo purpose, we are going to use express application. So here is our package.json for express framework node.js application. It is created via the express generator. I have added Multer and PUG NPM instead of Jade.
{ "name": "nodejsfileupload", "version": "0.0.0", "private": true, "scripts": { "start": "node ./bin/www" }, "dependencies": { "body-parser": "~1.15.2", "cookie-parser": "~1.4.3", "debug": "~2.2.0", "express": "~4.14.0", "morgan": "~1.7.0", "multer"…

Building Node.js CRUD Rest APIs with Express and Visual studio code

TL;DR; In this blog post, we are going to learn how we can create a basic Rest API with Node.js and Express using Visual Studio code editor.  Our API will contain four operations CREATE, READ, EDIT and DELETE.

Creating Basic Node Express application and common code for REST APIs: The first thing we need to create an empty folder called NodeJSRestPI folder and then right click and select open with code.

Once you open visual studio code create a file called package.JSON and put following JSON content on that.
{ "name": "node-api", "main": "api.js", "dependencies": { "express": "4.14.0", "body-parser": "1.16.0" } } Here you can see that we are going to use express and body parser npm.  Express is framework for creating Rest APIs and body-parser is to parse body values in JSON. Now once we are done with package.json we need to install node js module via “npm install”.…

My favorite Visual Studio code extension for Angular 2 Development

TL;DR; I have been using Visual Studio Code for quite a good amount time and I am loving it as a code editor. Recently I have started using it as my development editor for Angular 2 as it has recommended by the Angular 2 development team also. There are quite a few good extensions available in market place for the same. In this blog post, we are going to talk about my favorite extensions of Visual Studio Code for Angular 2 development.

My favorite extensions for Visual Studio Code for Angular 2 development: Here is list of my favorite extension of Angular 2 Development.

Angular 2 TypeScript Snippets by John Papa: When It’s come to Angular 2 development how we can forget John Papa. There is also a snippets extension created by him. You can find that at the following location.

There are plenty of snippets available from where you can create boilerplate code for Angular 2 like for example, You can create Angular 2 Comp…

How to use NancyFx with ASP.NET Core Application

TL;DR; In this blog post, we are going to learn how we can use Nancy framework with ASP.NET Core Application.

NancyFx Introduction: NancyFx is a lightweight, low-ceremony framework for building HTTP based services on .NET and Mono. It is inspired by Sintara Framework for Ruby and hence Nancy was named after the daughter of Frank Sintara. Nancy Framework is a great alternative to ASP.NET APIs. It follows “Super duper happy path” phrase. It has following goals.
It just works – You should just use it without learning so much thing from it. Create a Nancy module and that’s it.Easily Customizable – There are tons of customization available and then you can easily customize it.Low-ceremony- With the minimal code you will able to run NancyFx.No Configuration Required – There is no configuration required and very easy to setup.Host-agnostic and Runs anywhere-  It will run on any server, self-hosted etc.Low Friction- When you build software with NancyFx APIs it will help you where you want to …

ASP.NET Core Application continuous integration with visual and git

Previously I have written couple posts for continuous integration series and this post is also part of it. Recently Microsoft has released ASP.NET Core 1.0. So in this post, we are going to see how we can do the continuous integration for ASP.NET Core application. I am going to use as our source control repository and git as our version controlling system. So Let’s get started.

The first thing we need to is to create a Project into like following.

Once you click on create the project it will create a project with GIT as version controlling system.

Now our project is ready. Once you click on navigate to project it will load project dashboard like below.

Now go-to “Build & Release” section of the project. It will load the page like below.

Now to enable continuous integration for this project we need to create a new build definition for that click on Plus green icon on left side. It will load a wizard to create a build definition. The first screen p…

How to enable remote desktop on Azure Linux VM

In Windows Azure Linux VM there is no direct way to remote desktop Azure VM. So in this blog post, We are going to learn how we can enable the remote desktop on Azure Linux VM.  If you don’t know how to create a Linux VM then there is a ton of articles available that how you can create a Linux VM.  Following a Microsoft, Docs links for creating an Azure Linux VM.

After creating a new Linux VM, the first thing you need to have SSH Client to connect the Azure VM. I have windows machine and Putty is one of most well known SSH client for the windows. So If you don’t have SSH Client download Putty from the following link.

Once you create a VM you will get any public IP like following.

So copy that public IP and then open Putty and paste the public IP like following.

Now once you are done with it click on open button. It will ask for your username/password. The key thing t…