This tutorial will help you to get your Angular 2 project setup quickly.
- Node (version 4 or greater)
- npm (version 3 or greater)
Install angular-cli using following command
npm install angular-cli
Once angula-cli is installed you can check all the angular-cli options using following command:
Now to create new angular-2 project simply run following command:
ng new MY_PROJECT_NAME
And angular-cli will create all project structure & download all dependancies for your angular-2 project, also will setup task manager, unit test environment, e-2-e test environment and much more.
Now just go to the new folder created for your project and start your development server using following commands:
Now go and visit http://localhost:4200 in your favorite browser & you will see your first angular-2 app running.
Have fun…& explore awsome features of Angular-2
Co-Founder of CodeSphere Solutions
Ganesh is passionate about Web Development. He is a minimalist and likes exploring new and interesting technologies. In his free time he likes to play his guitar, watch movies and play with his dog, Penny.