The below image gives a quick overview of the folder and file structure Drift follows:
All the dependency and third party libraries are placed in this folder.
This will contain the source code of your project.
As usually angular offers to manage all the project related files in the app/ folder. So, this is the root app/ folder for the project. This app folder contains the following important sub-folders and files:
This folder basically contains all the files which represents to the content area of the layout.
data-db/ (will available In source dir only)
This folder contains all the JSON formatted data being used throughout the demo.
This folder contains all the layout examples of the demo. You can keep only the layout which you want in your project. Or you can add your own custom layout here.
This folder contains a service related to settings of the demo. The same could be used in your project to add/extend settings as per your project requirement.
This file contains service to fetch data from server which is being used in layouts etc.
This file contains the base routes of the project and this defines which layout will be loaded.
This assets/ folder contains all the required assets related to project. For example, css, sass, fonts, images, third-party assets etc.
This is a default folder from Angular CLI
This folder contains all the global components, directives, helpers, services, pipes, modules. These are reusable elements which could be used anywhere in your project.
This folder contains all the scss files which defines the styling of the project.
This file holds the list of all packages to be installed via $ npm install cammand
This file defines tasks to compile sass files. So, whenever you make any changes to sass files, you can run the following command to compile those changes:
There are more commands related to watch command etc. which you can explore by going through this file.
The below image gives an insight of the assets/ folder:
Following sub-folders explain the management of these different type of assets:
This folder contains the css files for all the layouts. Inside this css/ folder, you can find all the layout folders and each layout folder contains css files for both RTL and without RTL version.
You can keep only those layout folders which you wish to use in your project.
This folder contains the web-fonts used throughout the project.
This folder contains all the images used throughout the project.
This folder contains the language translations for different languages.
This folder contains the third-party assets. For example, gaxon-icon/ folder which is a custom font icon set designed and developed by G-axon.