avatar
Alberto

Oct 06, 2024

Angular: Getting Started

Angular: Getting Started

Get featured on Geeklore.io

Geeklore is in very early stages of development. If you want to help us grow, consider letting us sponsor you by featuring your tool / platform / company here instead of this text. 😊

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

2. Create a Project

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

ng new <project-name>

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

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

Source: https://angular.dev/

Latest Comments

    avatar Algorithm Adept
    Kuberdenis Algorithm Adept Level 26
    1 month ago

    thanks for doing the post in english too!

More From This User

1 0 13
Read Now

© 2024 Geeklore - DEV Community RPG

Facebook Twitter Linkedin Instagram

Campaign Progression Updated!