Language:

Search

Creating Project & its structure

  • Share this:
post-title

To create appplication / project

 

To create project, we should use below command.  ng new < project name >

ng new test

 

When you enter and execute command in CMD. You will ask to choose routing and what kind of css you want to use in the project.

? Would you like to add Angular routing? (y/N)  :  Y

  CSS
> SCSS   [ https://sass-lang.com/documentation/syntax#scss                ]
  Sass   [ https://sass-lang.com/documentation/syntax#the-indented-syntax ]
  Less   [ http://lesscss.org

 

When you complete, the result will look like below,

2021-10-29 11_05_30-C__WINDOWS_system32_cmd.exe
 

Project Structure

 

When ng new test command completes its execution, the new folder created under where you enter ng new test command. The new folder will have name of the project name you entered. Inside the "test" folder, the folder structure you will have like below,

2021-10-29 11_15_00-Get Started - test - Visual Studio Code
 

Don't worry about looking this folder structure. We can understand what we need to understand and which files are needed to start out project. In upcoming section, we will explore the angular in deep.

 

Previous Topic  Next Topic

Siva P SV

Siva P SV

I am developer and blogger. I am experienced in PHP, .NET, Android, Ionic, I know these kind of language. Because, I would like to learn new things in this world. I am still learning much more things. Oh, I forgot to mention that I am also one of the Co-Founders of Tuty Rocks