ng new my-app
(ng is the Angular CLI)
Questions asked during project creation:
Angular routing? Yes/No
Stylesheet format?
cd my-app ng serve --open
ng serve
builds the application and starts the development server.
The –open
flag opens the running application in a browser.
First, go to the root of the project:
cd my-app
Then, you can build for dev:
ng build
Or for production, which will result in smaller files:
ng build --prod
Production files are generated in the dist/
directory.