Angular 20 terminal/logging application using ng-terminal and @xterm/xterm libraries with standalone components architecture
An Angular 20 application focused on terminal and logging functionality using ng-terminal and @xterm/xterm libraries.
This is a modern Angular application called "terminalScreen" that implements terminal/logging capabilities with the following stack:
When working with this project, follow these steps:
Run the development server:
```bash
ng serve
```
The application will be available at `http://localhost:4200/`
**Root Component** (`src/app/app.ts`):
**Routing Configuration**:
**Log Component** (`src/app/log/log.ts`):
**Log Service** (`src/app/log/logService/log.ts`):
Components follow this structure:
**Production build:**
```bash
ng build
```
**Development build with watch mode:**
```bash
ng build --watch
```
Build outputs go to `dist/` directory.
Run unit tests with Karma:
```bash
ng test
```
Generate new components:
```bash
ng generate component component-name
```
View all available schematics:
```bash
ng generate --help
```
When implementing or modifying terminal functionality:
1. **Import terminal dependencies**: The project uses both `ng-terminal` and `@xterm/xterm`
2. **Service layer**: Use the LogService (`src/app/log/logService/log.ts`) for terminal logic
3. **Component layer**: Implement UI in the Log component (`src/app/log/log.ts`)
4. **Styling**: Terminal styles should be in component SCSS files
**Add a new terminal feature:**
1. Implement logic in LogService
2. Update Log component to use the service
3. Add corresponding tests
4. Update component template and styles
**Modify routing:**
1. Update `app.routes.ts`
2. Ensure components are standalone
3. Test navigation flows
**Update dependencies:**
1. Use `npm install` for package updates
2. Verify Angular compatibility
3. Run tests after updates
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/ngterminal-angular-integration/raw