README.md

April 4, 2024 · View on GitHub

Angular brand

Angular Boilerplate


Live site (Demo)


English | Español


This opinionated Angular starter focuses on the latest Angular features and best practices. It offers essential features for flexibility and scalability, minimizing unnecessary overhead. The codebase is lightweight yet robust, allowing developers to choose their preferred technologies like UI component libraries, state management, server-side rendering, etc. Its flexible boilerplate enables easy customization and adaptation to unique project requirements.

⚗️ Features

✅ Ready-to-use

UI Frameworks

Icons

Add-ons

⚙ Prerequisites

🏹 Start development

Note: You have three options to start a new project based on this template:

  1. Create a new GitHub repository from this template.
  2. Clone this repository to start with a clean git history.
  3. Scaffold a project fork on StackBlitz.

Using the GitHub template

Create a repo from this template on GitHub.


Cloning the repository locally

npx degit juanmesa2097/angular-boilerplate my-app && cd my-app && ./scripts/rename_project.sh my-app

Install dependencies

pnpm install # run `npm install -g pnpm` if you don't have pnpm installed

Run project

pnpm dev

Open in StackBlitz

📝 Checklist

Please review this checklist and modify it as necessary to meet your project requirements.

  • Run the ./scripts/rename_project.sh script to rename the project.
  • Change the title in src/index.html and the favicon in src/favicon.ico to match your project.
  • Decide whether to continue using simple-git-hooks and lint-staged for your project.
  • Clean up the README file to provide clear instructions about your project.
  • Modify the pages in the project to meet your specific requirements.

📦 Deploy to Vercel

Deploy to Vercel

📦 Deploy to Netlify

Deploy to Netlify

🐳 Docker

Create an image of the project.

docker buildx build -t angular-boilerplate:latest .

Run the image of the project.

docker run --rm -p 8080:80 -d angular-boilerplate:latest

🧙‍♂️ Commands

CommandDescriptionnpmyarnpnpm
devStarts the development servernpm run devyarn devpnpm dev
dev:hostStarts the development server with a custom hostnpm run devyarn devpnpm dev
buildBuilds the production codenpm run buildyarn buildpnpm build
watchBuilds the production code and watches for changesnpm run watchyarn watchpnpm watch
testRuns the unit testsnpm run testyarn testpnpm test
test:e2eOpen Cypressnpm run testyarn testpnpm test
test:headlessRuns the unit tests in headless modenpm run test:headlessyarn test:headlesspnpm test:headless
lintRuns the linternpm run lintyarn lintpnpm lint
lint:fixRuns the linter and fixes any linting errorsnpm run lint:fixyarn lint:fixpnpm lint:fix
lint:stagedRuns the linter on staged filesnpm run lint:stagedyarn lint:stagedpnpm lint:staged
stylelintRuns the style linternpm run stylelintyarn stylelintpnpm stylelint
stylelint:fixRuns the style linter and fixes any style linting errorsnpm run stylelint:fixyarn stylelint:fixpnpm stylelint:fix
formatFormats the code with prettiernpm run formatyarn formatpnpm format