Angular Admin Dashboard with Charts and Auth Pages - CoreUI
A free Angular 22 admin dashboard template with built‑in charts, authentication pages and a rich component library, ideal for developers building internal tools.
By coreui coreui/coreui-free-angular-admin-template 1,824 stars
Introduction
CoreUI Free Angular Admin Dashboard Template is an open‑source starter kit for building admin interfaces with Angular. It provides a collection of ready‑made pages, UI components, and chart integrations that help developers create functional dashboards quickly.
What this project offers
- A complete Angular application with routing, layout, and authentication pages.
- Ready‑to‑use UI components such as buttons, cards, modals, tables, and forms.
- Dashboard pages that include widgets and Chart.js visualisations.
- Error pages (404 and 500) and a set of authentication pages (login, register, password reset).
- SCSS‑based theming that can be customised.
Main features
- Authentication pages – login, register, password reset, change password.
- Component library – buttons, alerts, badges, breadcrumbs, dropdowns, tables, charts, etc.
- Dashboard widgets – various pre‑built widgets with Chart.js charts.
- Form examples – controls, validation, floating labels, input groups.
- Icon integration – CoreUI icons available as Angular components.
- Responsive layout – works on different screen sizes (no explicit responsive flag in the repo, but Angular layout components are used).
- SCSS theming – custom SCSS files for colours, spacing, and overrides.
Technology stack
- Angular ^22.3.0
- TypeScript ~6.0.3
- SCSS for styling
- Chart.js ^4.6.2 (via
@coreui/angular-chartjs) - RxJS ~7.8.2
- CoreUI UI library (
@coreui/angular,@coreui/coreui,@coreui/icons)
Requirements
- Node.js version ^22.23.4, ^24.22.1, or ^26.12.1
- npm >=10
Installation
- Download the source archive
# The ZIP file is available at /download/coreui-angular-admin.zip
- Extract the archive to a folder, e.g.
coreui-angular-admin. - Open a terminal in the extracted folder.
- Install dependencies
npm install
- Build the project (the template requires a build)
npm run build
The Angular CLI compiles the application and places the output in
dist/coreui-free-angular-admin-template.
- Run the development server (optional, for local testing)
npm start
This command starts ng serve -o which opens the app in your default browser at http://localhost:4200.
Configuration
- The main Angular configuration is in
angular.json. - Build output path can be changed in the
projects.coreui-free-angular-admin-template.architect.build.options.outputPathfield. - Environment‑specific settings can be added in the standard Angular
src/environments/folder (not present by default). - SCSS variables are defined in
src/scss/_custom.scss; edit this file to change colours, fonts, or other design tokens.
Customizing the project
- Add or modify components in
src/app/orsrc/components/. - Change the layout by editing files under
src/app/layout/. - Update SCSS in
src/scss/– the main stylesheet issrc/scss/styles.scss. - Add new routes in
src/app/app.routes.ts. - Replace icons by updating the SVG sprites in
src/assets/icons/or by using the CoreUI icon Angular components.
Project structure
coreui-angular-admin/
├─ angular.json
├─ package.json
├─ src/
│ ├─ app/
│ │ ├─ layout/
│ │ ├─ views/
│ │ └─ ... (components, routes, config)
│ ├─ assets/
│ │ ├─ images/
│ │ └─ ... (icons, favicons)
│ ├─ components/
│ ├─ scss/
│ │ ├─ _custom.scss
│ │ └─ styles.scss
│ ├─ index.html
│ └─ main.ts
└─ tsconfig*.json
Tips
- Run
npm run watchwhile developing to rebuild automatically on file changes. - Use
npm run testto execute the project's unit tests. - The built files in
dist/coreui-free-angular-admin-templatecan be served by any static web server (e.g.,npx http-server dist/...). - Keep the Node version within the supported range to avoid compatibility issues with Angular 22.
License and attribution
The project is licensed under the MIT License. See the LICENSE file in the repository.
Original repository: https://github.com/coreui/coreui-free-angular-admin-template
When redistributing, retain the license file and give credit to the original authors as required by the MIT license.
Use this prompt with an AI coding assistant (Claude Code, Cursor, ChatGPT and similar) to add CoreUI to a website or app you already have.
- Download the ZIP and put the project next to your own code.
- Fill in the bracketed parts, such as
[describe your stack]. - Paste the prompt into your assistant and review each change it proposes.
# Integrate CoreUI Free Angular Admin Dashboard Template
**Role**
You are a senior frontend developer assisting me in adding the CoreUI Free Angular Admin Dashboard Template to my existing application.
**Project description**
CoreUI Free Angular Admin Dashboard Template is an open‑source admin interface built with Angular 22, TypeScript, SCSS, and CoreUI components. It provides ready‑made layouts, authentication pages, UI components, charts (Chart.js), and responsive widgets for building admin dashboards.
**Source project**
- Repository: https://github.com/coreui/coreui-free-angular-admin-template
- License: MIT
- Framework: Angular ^22.3.0 (as listed in `package.json`)
- Build tool: Angular CLI (`ng build`)
- Key dependencies (from `package.json`):
- `@angular/*` (core Angular packages)
- `@coreui/angular` ~5.7.45, `@coreui/angular-chartjs` ~5.7.45, `@coreui/coreui` ^5.10.0, `@coreui/icons` ^3.1.0, `@coreui/icons-angular` ~5.7.45, `@coreui/utils` ^2.0.2
- `chart.js` ^4.6.2, `ngx-scrollbar` ^19.1.5, `rxjs` ~7.8.2, `tslib` ^2.9.1
**Target project context**
- Stack description: `[describe your stack, e.g. Laravel 11 + Blade]`
- Desired location for the UI: `[where the UI should go, e.g. inside a <router-outlet> of the main Angular module]`
- Existing CSS framework or design system: `[existing CSS framework]`
**Integration objectives**
- Import the CoreUI layout (header, footer, sidebar) into the existing Angular app.
- Add selected UI components (buttons, cards, tables, charts) and example pages (dashboard, authentication, error pages).
- Keep the current authentication, routing, state management, and data services untouched.
**Required components**
- Layout components: `default-layout`, `default-header`, `default-footer`.
- Pages to consider:
- Authentication: `login`, `register`, `reset-password`, `change-password`, `check-email`, `password-changed`.
- Dashboard: `dashboard`, `dashboard-brand`, widget components (`widgets`, `widgets-brand`, `widgets-dropdown`, `widgets-e`).
- UI component demos: accordions, alerts, badges, breadcrumbs, buttons, cards, carousels, chip, collapses, dropdowns, list‑groups, modals, navs, paginations, popovers, progress, spinners, tables, tabs, toasters, tooltips.
- Forms: checks‑radios, chip‑input, floating‑labels, form‑controls, input‑groups, layout, ranges, select, validation.
- Charts: `charts` (uses Chart.js).
- Error pages: `page404`, `page500`.
- Icons: `coreui-icons`.
**Layout and styling requirements**
- Import CoreUI SCSS via `src/scss/styles.scss` and ensure it is compiled with the existing SCSS pipeline.
- Use the existing Angular component selector prefix (`app`) to avoid selector collisions.
- If the target app already defines global styles, wrap CoreUI styles in a dedicated SCSS file and import after the app’s styles to let CoreUI variables override where needed.
- Do not modify the target app’s design tokens; keep them separate unless you intentionally merge them.
**Asset management**
- Assets are located under `src/assets/` and icons under `node_modules/@coreui/icons/sprites/`.
- Copy the `assets` folder (images, brand assets) into the target app’s assets directory, preserving the same relative paths.
- Add the icon sprite configuration to the target’s `angular.json` assets array if not already present.
- Do not duplicate libraries that already exist in the target (e.g., Angular, RxJS, Chart.js). Install only CoreUI packages that are missing.
**Routing and navigation**
- Add routes for the new pages in the target’s routing module, using the same path names as in `src/app/app.routes.ts`.
- Example: `{ path: 'login', loadComponent: () => import('./views/authentication/login/login.component').then(m => m.LoginComponent) }`.
- Preserve existing routes; place CoreUI routes under a parent path if needed (e.g., `/admin/*`).
**Responsive requirements**
- CoreUI components are built to be responsive; ensure the target’s global viewport meta tag is present.
- Test on typical breakpoints (mobile, tablet, desktop) after integration.
**Accessibility requirements**
- CoreUI components include ARIA attributes; keep them unchanged.
- Verify that any custom modifications do not remove `role`, `aria-label`, or keyboard navigation support.
**Compatibility requirements**
- Angular version must be ^22.3.0.
- TypeScript version must be ~6.0.3.
- Build step: run `npm install` for new dependencies, then `ng build` (or the target’s equivalent build command).
**Preserve the existing application**
- First, inspect the existing codebase before changing any file.
- Do not replace or rewrite authentication, routing, state, or data layers.
- Make small, isolated changes (add new modules, components, and routes).
- Ask before deleting any existing files or dependencies.
**Testing and verification checklist**
- [ ] Run the target app’s unit and integration tests; ensure they still pass.
- [ ] Verify that the new routes load without errors.
- [ ] Check that the header, sidebar, and footer appear correctly.
- [ ] Confirm that authentication pages render and submit forms as expected.
- [ ] Ensure charts display data using Chart.js.
- [ ] Test responsiveness at mobile, tablet, and desktop widths.
- [ ] Validate that no CSS from CoreUI overrides the target app’s custom styles unintentionally.
- [ ] Run an accessibility audit (e.g., axe) on the integrated pages.
- [ ] Confirm that the build succeeds (`ng build` or equivalent) and the production bundle size is acceptable.
