Friday, May 22, 2020

TypeScript watch compiler parameter

Compiling every changes to your Type Script code, is really  not only time consuming activity but also put huge  pressure your process , especially if you have large source code on your process. Every time it has to compile, propagate the updates to all of its dependencies.
To resolve this issue  on your use the Watch  parameter of tsc compiler.
Syntax for using watch parameter with tsc compiler.

tsc --watch YourTSFile.ts

Now your terminal will be on active mode and start to continuously watching the changes your source code and behind the scene it will compile the code into JS output.
You have to keep your terminal in active mode, it shouldn't be stopped.

Thursday, May 21, 2020

Upgrading latest NodeJS in ubuntu

In this post, I am listing the steps I have followed on my Ubuntu 18.04 to upgrade the latest NodeJS for Angular development purpose.
On my machine, it shows the default node version that is v8.
To develop the Angular application, you must have installed the latest version of NodeJS ( > 10.13.0 ) and NPM (6.11.0).

Tp Upgrade to latest NodeJS in Ubuntu 18.04 , follow these step

sudo npm cache clean -f
sudo npm install -g n
sudo n stable

Still you want to latest version other than stable version, use this command
sudo n latest

After successful of the above commands, now you can check node -v command to verify the latest version. Now I have latest version of npm and nodeJS.

After this, AngularCLI got installed successfuly and able to create angular application.

Monday, May 11, 2020

ASP.NET Core application deploy to Azure

Deploying the ASP.NET application from Visual Studio to Azure is very simple and straight forward. All you need to do is just click next button on each GUI wizard once you logged into your azure subscription.
But this is not the case, if you are developing the web or MVC application using the Visual Studio Code. 
To complete this, you must have local git installed on your machine with internet connection.

Step
Go to your App Service "Over view" page

Copy the Git clone URL
On your local machine navigate to your project folder in command prompt or terminal
on project folder location (in command prompt) type :\ git init
Now type 
git  remote add azure  https://Murugesan@murugesan.scm.azurewebsites.net:443/murugesan.git
Once it successful, type 
git  commit -m "First push"
git push azure master
Now you can able to see your ASP.NET core application in Azure.