A modern Angular Starter Template built with pnpm, TailwindCSS 4, PrimeNG, Biome, and Lefthook. This template delivers a clean, scalable, and production-ready architecture — perfect for enterprise Angular applications with consistent code quality and an optimized developer workflow.
-
Angular v20+ (compatible with future versions)
-
TypeScript >=5.9
-
Enterprise-ready file structure
-
Fast and stable Angular build system
-
TailwindCSS v4.1 configured with PostCSS
-
PrimeNG 20 components integrated
-
PrimeIcons included
-
tailwindcss-primeui for seamless UI styling
-
JWT handling with @auth0/angular-jwt
-
Extendable for RBAC (role-based access control)
-
only-allow pnpm → enforce pnpm for consistency
-
Biome (format + lint + diagnostics)
-
Lefthook Git hooks (auto-lint & format on commit)
-
Fully configured Angular CLI scripts
-
Jasmine + Karma setup
-
Angular TestBed for unit/component tests
-
PostCSS configured
-
Prettier + Tailwind plugin included
-
ESNext optimized build
Make sure you have installed:
- Node.js ≥ 22.x → check with:
node -v- pnpm ≥ 10 → check with: → check with:
pnpm -vThis project enforces pnpm with only-allow pnpm. Using npm or yarn will
fail.
- Clone the Repository
git clone <your-repo-url>
cd ng-template- Install Dependencies
pnpm installThis will:
-
Install all dependencies and devDependencies
-
Run
lefthook installautomatically (prepares Git hooks) -
Set up Biome for linting & formatting
Lefthook installs automatically:
"prepare": "lefthook install"It ensures:
-
🧹 Auto-formatting (Biome)
-
🔎 Auto-linting
-
❌ Prevents bad code commits
-
✔ Consistent and clean codebase
Common commands:
pnpm format # Format code
pnpm lint # Lint code
pnpm check # Type-aware diagnosticsBiome guarantees a clean, consistent, and reliable codebase.
This project strictly uses pnpm:
npx only-allow pnpmUsing npm or yarn will be blocked for consistency.
To run the project:
-
Install Node ≥22 and pnpm ≥10
-
Clone the repo and
pnpm install -
Start dev server with
pnpm startorng serve -
Open
http://localhost:4200/in your browser
Additional commands:
-
pnpm build→ production build -
pnpm run watch→ watch mode for development -
pnpm test→ run unit tests -
pnpm format,pnpm lint,pnpm check→ code quality checks