DEV Community


Setting up Angular project

queencykoh profile image queencykoh ・1 min read

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

ng new budgetarian-app
Enter fullscreen mode Exit fullscreen mode

It will prompt for information about features to include in the initial app. Simply accept the defaults.

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/

Discussion (0)

Editor guide