Saturday, April 6, 2019

How to start New angular project

This guide shows you how to start new project in angular. Just follow the simple steps and enjoy it.

1. First download nodejs from https://nodejs.org

2. Then run the exe file to intall it.

3. Open Command Prompt and do the following steps.

3.1 To open d drive (C:\Users\siva>D:)

3.2 To install angular CLI D:\> npm install -g @angular/cli

3.3 To start new project (D:\>ng new project-name)

4. It will ask Would you like to add angular routing? (y/n)

5. Just press y and select which stylesheet format would you like to use? Choose you favourite stylesheet css or scss or sass etc.

6. Please wait 5 mins for the new project installation

7. Once the installation is completed, use the following command (D:\>cd project-name).

8. To run the project follow the command (D:\project-name>ng s -o)

9. The current project will work on the port http://localhost:4200 on your default browser

No comments:

Post a Comment