To create a new Angular project, you can use the Angular CLI (Command Line Interface). Here are the steps to create a new Angular project:
1. Install Angular CLI: If you haven't already installed the Angular CLI, you can do so by running the following command in your terminal:
```
npm install -g @angular/cli
```
This will install the Angular CLI globally on your system.
2. Create a new project: Once you have installed the Angular CLI, you can create a new Angular project by running the following command:
```
ng new my-app
```
Replace `my-app` with the name of your project. This will create a new Angular project with the default configuration.
3. Run the project: Once the project has been created, you can navigate into the project directory and start the development server by running the following commands:
```
cd my-app
ng serve
```
This will start the development server and launch the application in your default web browser at `http://localhost:4200/`.
That's it! You have successfully created a new Angular project using the Angular CLI. You can now start building your application by modifying the code in the `src` directory.
Comments
Post a Comment