Understanding the Folder Structure

Folder structure of an Angular application

The node_modules directory

The node_modules directory is primarily meant for build tools. It helps install all the libraries and packages found in the dependencies and dev dependencies in the package.json file.

The src directory

This directory contains all the folders required to build our application. This is where we implement the logic for our application that consists of generating components, services, routing, styling, interceptors, guards, and the like.


This file lies at the root of an angular application. It helps store data about the libraries installed in the project and the specified version of the library.

Once a new library is added to the project, the name and version are added to the dependencies object inside the package.json file.

Get hands-on with 1200+ tech skills courses.