There are many ways to create Angular projects. Here we are doing it with Angular CLI
With the CLI you can have a new webpack based project set up and running within minutes with almost zero manual configuration.
Prerequisites
As per angular CLI team, you need node 6.9.0 or higher, together with npm 3 or higher to run the CLI and Angular project
Download CLI
Need to install CLI globally via NPM
- npm install -g @angular/cli
Create Project
Once CLI is installed, you go the folder /drive , where you want to create new project. Use your favorite command line editor. Run the following command.
- ng new PROJECT_NAME
Replace PROJECT_NAME with your desired project name (without spaces)
- npm start
- ng serve
- http://localhost:4200/


| Scaffold | Usage |
| Component | ng g component my-new-component |
| Directive | ng g directive my-new-directive |
| Service | ng g service my-new-service |
| Class | ng g class my-new-class |
| Interface | ng g interface my-new-interface |
| Enum | ng g enum my-new-enum |
| Module | ng g module my-module |
- Super quick and easy to configure Angular project with CLI.
- Webpack, Protractor e2e testing, Karma/Jasmine testing setup automatically.
- All dependencies modules installed automatically.
- Centralized configuration via an Angular CLI config file
- Easy CLI commands to create components, modules

Join the conversation! Your thoughts help the community grow.