Skip to content

MatthewDlr/angular-tailwind-template

Repository files navigation

Tip

Replace every instance of app-name with the name of the project.

Presentation

Stack

  • Node : 24.x
  • Package Manager: pnpm@10.24.0
  • Framework: Angular@21 with zoneless, ssr, and hmr enabled
  • Styling: TailwindCSS@4.1
  • Linter: Oxlint
  • Formatter: Oxfmt,

Features

  • Angular Core v21
  • Angular Zoneless enabled, with OnPush detection strategy by default
  • Angular SSR enabled with Incremental Hydration
  • Angular HMR enabled
  • TailwindCSS 4.1 with pre-configured styles (typography, colors, motions)
  • Oxlint to lint code almost 100x faster than Eslint with Type-Aware Linting
  • Oxfmt to format code 30× faster than Prettier (Prettier extension might be needed to format .html files)
  • Satoshi variable font as default font
  • VSCode recommended extensions
  • GenAI ready with Agent.md file along with .claude, .cursor and .gemini folders for prompt storage

Dev

Installation

Important

Node version must be v24.x
Learn more at https://angular.dev/reference/versions

If pnpm is not installed, simply run:

npm install -g pnpm@10.24.0

Then, install the dependencies:

pnpm install

Development server

To start a local development server, run:

ng serve

or

pnpm dev

Once the server is running, open your browser and navigate to http://localhost:4200/. The application will automatically reload whenever you modify any of the source files.

Code scaffolding

Angular CLI includes powerful code scaffolding tools. To generate a new component, run:

ng generate component component-name

For a complete list of available schematics (such as components, directives, or pipes), run:

ng generate --help

Linting

To lint your code using Oxlint, run:

pnpm lint 

Warning

Angular ng lint command will not work in this project

Formatting

To format your code using Oxfmt, run:

pnpm format

Building

To build the project run:

ng build

This will compile your project and store the build artifacts in the dist/ directory. By default, the production build optimizes your application for performance and speed.

Running unit tests

To execute unit tests with the Vitest test runner, use the following command:

ng test

Running end-to-end tests

For end-to-end (e2e) testing, run:

ng e2e

Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.

Additional Resources

For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.

About

Opinionated Angular starter template.

Resources

Stars

Watchers

Forks