node -v
and the npm npm -v
)npm install -g @angular/cli
(to verify ng --version
|| ng version
)ng g c post-list
ng serve
During previous lessons, we created our first Angular application. You might have also heard us calling the application an Angular project. A project refers to the set of files that make up a single independent Angular application. A collection of files that belong to one or more Angular projects makes up the Angular workspace.
When we create an Angular project using the Angular CLI (Command-Line Interface), some files and folders are created automatically inside the project workspace. These files and folders are stored inside a single folder that has the same name as your new application. This folder is called the ‘workspace root’.
These files inside the workspace root make up a simple skeleton application that is ready to be run and edited.
Let’s see what some of them are:
Types of files inside the workspace root
Three main types of files and folders can be found inside the root folder.