DEV Community

queencykoh
queencykoh

Posted on • Updated on

Your first Angular app

Install the Angular CLI

Angular CLI is use to create projects, generate application and library code, and perform a variety of ongoing development tasks such as testing, bundling, and deployment.

To install the Angular CLI, open a terminal window and run the following command:

npm install -g @angular/cli
Enter fullscreen mode Exit fullscreen mode

Create an initial starter application

Run the CLI command ng new and provide the name of the project and --routing attribute to create application routing module, called AppRoutingModule for common routing tasks.

ng new budgetarian-app --routing
Enter fullscreen mode Exit fullscreen mode

Run the application

Go to the folder and run ng serve

cd budgetarian-app
ng serve
Enter fullscreen mode Exit fullscreen mode

ng serve command will build the app and starts the development server

Open browser on http://localhost:4200/

image

Top comments (0)