Ismaestro/angular-example-app
关于
Angular Example App 是一个使用 Angular 21 构建、适合初学者且可用于生产环境的 Web 应用。它通过真实场景示例展示 Angular 的核心功能,包括 CRUD 操作、身份验证、国际化、懒加载和 signals。
网站与应用开发可以做什么
- ✅ Angular 21 - Using latest features (Zoneless, Signals, OnPush)
- ✅ Internationalization - i18n with English and Spanish
- ✅ Authentication - JWT-based, real login flow
- ✅ Routing & Guards - Functional guards with lazy-loaded routes
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -2
- 1个月
- 0
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文🚀 Angular Example App
Your all-in-one real-world Angular starter — built for learning, productivity, and scaling.
Crafted with ❤️ to showcase real best practices in action: standalone components, signals, routing, i18n, authentication and more.
Why This Project?
Whether you're just starting with Angular or looking for a solid base for your next app, this project has you covered.
- ✅ Beginner-friendly: Clean code, best practices, and detailed structure.
- ✅ Production-ready: Real APIs, authentication, modular architecture.
- ✅ Feature-rich: Not just a to-do list! Real-world logic you’ll use in any serious project.
- ✅ Made with love: Built by passionate developers, for the community.
Getting Started
There is no public demo: run the app locally. It works on its own (with the PokeAPI and a remote backend) or with the local backend described in Backend API.
npm i
npm start # opens http://localhost:4200 in English (npm run start:es for Spanish)
Running with the local backend
- Start the NestJS API from nestjs-example-app (
npm run setupthere) so it listens onhttp://localhost:3000. - In
src/environments/environment.ts, changeapiBaseUrlto'http://localhost:3000'. The file currently points to the production API, and the commented line above it shows the local value. - Run
npm startagain.
Do not commit that change unless you mean to.
Verification & Quality
npm run verify:all # Run lint, stylelint, tests, build, e2e, and lighthouse
npm run lint # Run ESLint
npm run stylelint:fix # Fix SCSS styles
npm run knip # Run Knip (Unused files and dependencies)
npm run prettier:write # Format all code
npm run test # Run Unit Tests (Vitest)
npm run test:coverage # Run Tests with coverage
Features
| ✅ Angular 21 | Using latest features (Zoneless, Signals, OnPush) |
| ✅ Internationalization | i18n with English and Spanish |
| ✅ Authentication | JWT-based, real login flow |
| ✅ Routing & Guards | Functional guards with lazy-loaded routes |
| ✅ Responsive Design | Mobile-first layouts with Flexbox and Grid |
| ✅ APIs | Example integration with the PokeAPI |
| ✅ Shoelace Components | Accessible and modern UI components |
| ✅ NgOptimizedImage | Fast image loading with Angular's directive |
| ✅ SSG & Prerendering | Static Site Generation for index and Pokémon pages |
| ✅ Animations | Smooth transitions with Angular Animations |
| ✅ Clean Architecture | Modular folder structure following best practices |
| ✅ SASS & BEM | Maintainable and scalable styling |
| ✅ Tests E2E | Using Playwright (POM, Visual, Accessibility) |
| ✅ Unit Tests | Using Vitest with high coverage (>95%) |
| ✅ Lighthouse | Verifying web performance with defined thresholds |
| ✅ Modern Quality | ESLint, Prettier, Stylelint, Husky, Knip, Release |
Roadmap
- Component & service testing with Vitest!
- Implement incremental hydration with Angular 21
- Opened issues?
Backend API
This app connects to a real backend powered by NestJS, PostgreSQL, and Prisma. You can explore the codebase here.
Found a bug? Got an idea?
We love feedback! If something doesn't work or you think of a cool new feature, open an issue or contribute directly with a PR.
Contributors
Tom Gamull 🚇 |
mansyaprime 💻 |
codeimmortal 💻 |
tomasfse 💻 |
golu 💻 |
rancyr 💻 |
codingphasedotcom 💻 |
Max 💻 |
Karajan 💻 |
Carl Chan 💻 |
Dyeimys Franco Correa 💻 |
Anartz Mugika Ledo 💻 |
OrlPep 💻 |
License
This project is licensed under the MIT License.
探索相关项目
加载中…