Setup and common commands

Let's use Angular CLI to create and manage an Angular Everyday Market app.

First, open the Terminal or Command Prompt and install Angular CLI with the following steps:

  1. Run the following command:
npm install -g @angular/cli
  1. Afterward, the CLI should be installed, and you can start using it by executing the ng command.
  2. Next, let's use the basic commands available as part of the CLI.

Using the Terminal, create our Everyday Market project:

  1. Run the following command:
ng new everyday-market-ng

The ng new command creates new projects. When executed, it creates the folder with the specified name and scaffolds the entire project using Angular's preferred structure and recommended practices, in addition to installing the required dependencies.

Next, let's cover some more common commands in Angular CLI. In order to use these commands, make sure you enter them in the Terminal while you're located in the root folder of the project, which is everyday-market-ng.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.249.174