Creating your Angular Application from the terminal In your terminal go to the directory you would like to create your project and enter the command: ng new your-project-name Remember to replace your-project-name seen in the example with your desired project name
You will then have the option to add Angular routing and your desired style sheet format. If you are not sure what Angular routing is just choose: No
If your project was created correctly it should look somewhat like the above Change your directory so that you’re within your newly created project folder
Be sure that you are within your newly created project folder and run: npm install You should see something similar to the above after running the last command 2. Running your Angular Application locally
Enter the command: ng serve You will then see some console output like this Try going to http://localhost:4200 — the default port for Angular Upon navigating to http://localhost:4200/ you will see a sample page generated by Angular
Sample page generated by Angular