Execute javascript code from ASP.NET Core back-end using NodeServices

Not many are familiar with this awesome feature of dotnet core. Aspnet team is actively maintaining a project named JavascriptServices; Along with other packages, it includes the NodeServices package. Using this package, one can easily create an instance of node and execute javascript code (function) in the backend. If you think of it right now, you can see that it actually opens up a wide variety of development opportunities. By opportunities I mean; the core project is trying hard to make its package eco-system (NuGet) rich but while…

Keep reading

Configuring Typescript for ASP.NET CORE Apps

Start with an empty project Open up Visual Studio 2015 and create a new ASP.NET Core Web Application. Make sure you have ASP.NET CORE RC2 installed in your PC if you want to follow this walkthrough step by step. Choose the Empty Template from the available ASP.NET Core Templates since we are totally starting from scratch. After your project is created, it should restore required NuGet packages defined in the project.json file. The empty project solution will look like this, Adding a default html file To…

Keep reading

NPM, BOWER, NUGET, GULP – The Four Horsemen of ASP.NET CORE Apps

It's not really a introduction Okay! So I’m not going to waste your time here giving some definitions of these four well known and broadly used tools. Rather I’ll show you how you can get most out of these tools while working on an core web applications. I’m going to start with a blank project and will add these tools (except for NuGet. All core apps support NuGet by default) one by one in the project. Finally you will have a good understanding…

Keep reading