Oct 06, 2024
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.
Run the following command in your console:
npm install -g @angular/cli
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.
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.
Once that's done, the necessary files will begin to be created. By default, Angular creates standalone projects.
When the installation is complete, the following message will appear:
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/
More From This User
Latest Comments
thanks for doing the post in english too!