Create the app
Use the CLI to scaffold out a new app called "my-static-app" by running the following command:
npx @angular/cli new my-static-app
When the CLI asks any configuration questions, press enter to select the default options.
Build the application by switching to the new folder and running
npm run build:
cd my-static-app npm run build
Run the app by using the following command:
Open a browser to
http://localhost:4200to verify that the app is running:
Stop the server by pressing Ctrl+C in the terminal or command prompt.