63 lines
1.1 KiB
Markdown
63 lines
1.1 KiB
Markdown
# NgRx Playground
|
|
|
|
> An Angular application for exploring and learning NgRx state management patterns.
|
|
|
|
Built with **Angular CLI v21.2.1** · Tested with **Vitest**
|
|
|
|
---
|
|
|
|
## Getting Started
|
|
|
|
### Prerequisites
|
|
|
|
- Node.js (LTS recommended)
|
|
- Angular CLI: `npm install -g @angular/cli`
|
|
|
|
### Installation
|
|
|
|
```bash
|
|
npm install
|
|
```
|
|
|
|
### Development Server
|
|
|
|
```bash
|
|
ng serve
|
|
```
|
|
|
|
Open [http://localhost:4200](http://localhost:4200) in your browser. The app reloads automatically on file changes.
|
|
|
|
---
|
|
|
|
## Scripts
|
|
|
|
| Command | Description |
|
|
|---|---|
|
|
| `ng serve` | Start development server |
|
|
| `ng build` | Build for production |
|
|
| `ng test` | Run unit tests with Vitest |
|
|
| `ng e2e` | Run end-to-end tests |
|
|
| `ng generate component <name>` | Scaffold a new component |
|
|
|
|
---
|
|
|
|
## Project Structure
|
|
|
|
```
|
|
src/
|
|
├── app/
|
|
│ ├── store/ # NgRx state, actions, reducers, effects, selectors
|
|
│ └── ...
|
|
├── assets/
|
|
└── environments/
|
|
```
|
|
|
|
---
|
|
|
|
## Resources
|
|
|
|
- [NgRx Documentation](https://ngrx.io/docs)
|
|
- [Angular Documentation](https://angular.dev)
|
|
- [Angular CLI Reference](https://angular.dev/tools/cli)
|
|
- [Vitest](https://vitest.dev)
|