Showing posts from January, 2017

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 …