DEV Community

Cover image for Angular: Getting Started
Alberto Cahuiche
Alberto Cahuiche

Posted on

Angular: Getting Started

Angular is an excellent framework for frontend application development. Below are the necessary steps to install Angular and start a project.

Note: Before proceeding with the installation, make sure you have Node.js version 18.19.1 or higher installed.

1. Install the CLI

Run the following command in your console:

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

2. Create a Project

Once the CLI is installed, you can create your first project with the command:

ng new <project-name>
Enter fullscreen mode Exit fullscreen mode

When doing so, it will ask you to choose which stylesheet you want to use in your app.

Seleccion Hojas de estilo

Then, it will ask if you want to use Server Side Rendering (we will cover this concept in future posts), just type "y" if you want to use it or "n" if you don't need it in your project.

Seleccion de server side rendering

Once that's done, the necessary files will begin to be created. By default, Angular creates standalone projects.

archivos de proyecto

When the installation is complete, the following message will appear:

instalacion terminada

And that's how you create your first project in Angular. As mentioned earlier, the project generated by default is standalone. If you want to create a project with modules, you will just need to adjust the command you use to generate the project.

ng new <project-name> --standalone=false
Enter fullscreen mode Exit fullscreen mode

In the next post, we will cover the file structure and its use.

Source: https://angular.dev/

Top comments (0)