@description Good tools make application development quicker and easier to maintain than if you did everything by hand. The [**Angular CLI**](https://cli.angular.io/) is a **_command line interface_** tool that can create a project, add files, and perform a variety of ongoing development tasks such as testing, bundling, and deployment. The goal in this guide is to build and run a simple Angular application in TypeScript, using the Angular CLI while adhering to the [Style Guide](guide/guide/style-guide) recommendations that benefit _every_ Angular project. By the end of the chapter, you'll have a basic understanding of development with the CLI and a foundation for both these documentation samples and for real world applications. You'll pursue these ends in the following high-level steps: 1. [Set up](guide/cli-quickstart#devenv) the development environment. 2. [Create](guide/cli-quickstart#create-proj) a new project and skeleton application. 3. [Serve](guide/cli-quickstart#serve) the application. 4. [Edit](guide/cli-quickstart#first-component) the application. And you can also download the example.
File | Purpose |
---|---|
app/app.component.{ts,html,css,spec.ts}
|
Defines the `AppComponent` along with an HTML template, CSS stylesheet, and a unit test. It is the **root** component of what will become a tree of nested components as the application evolves. |
app/app.module.ts
|
Defines `AppModule`, the [root module](guide/guide/appmodule) that tells Angular how to assemble the application. Right now it declares only the `AppComponent`. Soon there will be more components to declare. |
assets/*
|
A folder where you can put images and anything else to be copied wholesale when you build your application. |
environments/*
|
This folder contains one file for each of your destination environments, each exporting simple configuration variables to use in your application. The files are replaced on-the-fly when you build your app. You might use a different API endpoint for development than you do for production or maybe different analytics tokens. You might even use some mock services. Either way, the CLI has you covered. |
favicon.ico
|
Every site wants to look good on the bookmark bar. Get started with your very own Angular icon. |
index.html
|
The main HTML page that is served when someone visits your site. Most of the time you'll never need to edit it. The CLI automatically adds all `js` and `css` files when building your app so you never need to add any ` |