By W.ZH Oct 2016
Install latest Node.js, from Node.js website:
First, make sure you have a C++ compiler. Open the terminal and install the build-essential and libssl-dev packages if needed. By default, Ubuntu does not come with these tools — but they can be installed in the command line.
Use apt-get to install the build-essential package and libssl-dev:
sudo apt-get install build-essential checkinstall
sudo apt-get install libssl-dev
You can install and update Node Version Manager, or nvm, by using cURL:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
You will be asked to close and reopen the terminal. To verify that nvm has been successfully installed after you reopen the terminal, use:
command -v nvm
That command will output nvm if the installation worked.
To download, compile and install the latest version of Node:
nvm install 6.0
nvm use 6.0
nvm alias default node
Install latest NPM
There’s a pretty robust install script at https://www.npmjs.org/install.sh. You can download that and run it.
Here’s an example using curl:
curl -L https://npmjs.org/install.sh | sh
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:
If you do not have the /usr/bin/node, Create a symbolic link for node, as many Node.js tools use this name to execute.
sudo ln -s /usr/bin/nodejs /usr/bin/node
Now we should have both the Node and npm commands working:
Install VS code
Just go to Vs code web site to download the deb file and install it.
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update && sudo apt-get install ubuntu-make
umake web visual-studio-code