By W.Zh Oct 2016
Our history and current projects mostly based on the Java/Spring/JSP to do most things. And at the front end side, we use EasyUI, KendoUI, GoJS, Jquery, and a little bit angular JS 1 to realize the page render, control and data loading. But with the Angular 2 released in last month, I have decided to start using the angular2 in future projects. As we already have the Spring controllers working as the RESTful service in system. so Front end in future will totally be detached from the Java server side easily!!!
Of course we are going to face many challenges in future about the new tech pick up, old UI migration, interface integrations , but embracing the trend of the detached front end will benefit all teams and it will be fun, especially the Typescript and Angular2 natively have too much common with Java stacks.
I will start to write a series of articles about the angular2 when we adopt it. let us start from installing:
To install Node.js and npm, in your terminal of Ubuntu:
sudo apt-get install nodejs
Then install the Node package manager, npm:
sudo apt-get install npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
Now we should have both the Node and npm commands working:
$ node -v $ npm -v
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update && sudo apt-get install ubuntu-make
umake web visual-studio-code