This is a template project based on the Angular 16 framework, structured as Standalone ; in conjunction withGoogle
's gts, it provides a unified standard and check for the project's code and formatting.
- Commitizen and Prettier: Utilizes tools for code and commit message formatting.
- Uses Google Code Style
- Commitlint and ESlint: During commit, syntax checks and enforced formatting are performed to ensure consistency in each submission.
- Complemented with the use of VScode Extension for automatic formatting and Linting upon file saving.
tools | version |
---|---|
Node.js | ^16.14.0 or ^18.10.0 |
git | LTS |
Angular cli | ^16.1.0 |
Search for @recommended
within EXTENSIONS
(as shown in the image above), and you will see the Extensions recommended for installation. Please install all of them.
Enter the following command to install the packages:
npm install
After the packages are installed, enter the following command to start the project:
ng serve
Enter the following command to invoke the Commitizen
tool to assist in writing commit messages:
npm run commit
ng serve
- Start the development server.ng build
- Generate the build package.ng test
- Run unit tests.npm run lint
- Execute code checks.npm run commit
- Use Commitizen to submit changes.
- π angular-boilerplate-standalone
- π .angular
- π .vscode (VSCode Settings)
- π .husky (Husky Configuration)
- π e2e
- π node_modules (Dependencies)
- π src
- π app
- π core (Shared Utility Modules)
- π enums (Enumeration Declarations)
- π common.enum.ts
- π guards (Route Guards)
- π utils (Helper Tools)
- π common-utils.ts
- π consts (Constant Declarations)
- π common.consts.ts
- π models (Common Data Models)
- π a.model.ts
- π b.model.ts
- π services (Common Services: e.g., Storage)
- π validators (Validators)
- π interceptors
- π features (Feature Modules)
- π feature-a
- π feature-a.component.html
- π feature-a.component.scss
- π feature-a.component.ts
- π feature-a.component.spec.ts
- π models (Data Models used by the feature)
- π shared (Shared Components)
- π components (Common Components, e.g., dialog, toast)
- π pipes
- π directives
- π layout (Layout Components, e.g., header, navbar)
- π app.component.html
- π app.component.scss
- π app.component.ts
- π app.module.ts
- π app.routing-module.ts
- π assets (Static Resources)
- π images (Images)
- π data (Mock API Data)
- π scripts (External JS)
- π icons πΈ
- π styles (Style Files)
- π _custom.scss πΈ (Styles for External Packages)
- π styles.scss
- π environments (Environment Variables)
- π environment.ts
- π environment.prod.ts
- π index.html
- π main.ts
- π polyfills.ts
- π .eslintrc.json
- π .eslintignore.json
- π .lintstagedrc.json
- π .gitignore
- π .commitlint.config.js
- π angular.json
- π package.json
- π tsconfig.json
- π README.md