Skip to content

Commit e95cedf

Browse files
committed
Adds a streaming response example as well as updates the .gitignore file
1 parent d077e49 commit e95cedf

18 files changed

+12728
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ firebase-debug.*.log*
99

1010
# Firebase cache
1111
.firebase/
12+
.angular/
1213

1314
# Firebase config
1415

@@ -67,3 +68,5 @@ node_modules/
6768

6869
# dataconnect generated files
6970
.dataconnect
71+
72+
.DS_Store

streaming-example/README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# StreamingXpApp
2+
3+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.2.0.
4+
5+
## Development server
6+
7+
To start a local development server, run:
8+
9+
```bash
10+
ng serve
11+
```
12+
13+
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
14+
15+
## Code scaffolding
16+
17+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
18+
19+
```bash
20+
ng generate component component-name
21+
```
22+
23+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
24+
25+
```bash
26+
ng generate --help
27+
```
28+
29+
## Building
30+
31+
To build the project run:
32+
33+
```bash
34+
ng build
35+
```
36+
37+
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
38+
39+
## Running unit tests
40+
41+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
42+
43+
```bash
44+
ng test
45+
```
46+
47+
## Running end-to-end tests
48+
49+
For end-to-end (e2e) testing, run:
50+
51+
```bash
52+
ng e2e
53+
```
54+
55+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
56+
57+
## Additional Resources
58+
59+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.

streaming-example/angular.json

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"streaming-xp-app": {
7+
"projectType": "application",
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"inlineTemplate": true,
11+
"inlineStyle": true,
12+
"skipTests": true
13+
},
14+
"@schematics/angular:class": {
15+
"skipTests": true
16+
},
17+
"@schematics/angular:directive": {
18+
"skipTests": true
19+
},
20+
"@schematics/angular:guard": {
21+
"skipTests": true
22+
},
23+
"@schematics/angular:interceptor": {
24+
"skipTests": true
25+
},
26+
"@schematics/angular:pipe": {
27+
"skipTests": true
28+
},
29+
"@schematics/angular:resolver": {
30+
"skipTests": true
31+
},
32+
"@schematics/angular:service": {
33+
"skipTests": true
34+
}
35+
},
36+
"root": "",
37+
"sourceRoot": "src",
38+
"prefix": "app",
39+
"architect": {
40+
"build": {
41+
"builder": "@angular-devkit/build-angular:application",
42+
"options": {
43+
"outputPath": "dist/streaming-xp-app",
44+
"index": "src/index.html",
45+
"browser": "src/main.ts",
46+
"polyfills": [
47+
"zone.js"
48+
],
49+
"tsConfig": "tsconfig.app.json",
50+
"assets": [
51+
{
52+
"glob": "**/*",
53+
"input": "public"
54+
}
55+
],
56+
"styles": [
57+
"src/styles.css"
58+
],
59+
"scripts": [],
60+
"server": "src/main.server.ts",
61+
"outputMode": "server",
62+
"ssr": {
63+
"entry": "src/server.ts"
64+
}
65+
},
66+
"configurations": {
67+
"production": {
68+
"budgets": [
69+
{
70+
"type": "initial",
71+
"maximumWarning": "500kB",
72+
"maximumError": "1MB"
73+
},
74+
{
75+
"type": "anyComponentStyle",
76+
"maximumWarning": "4kB",
77+
"maximumError": "8kB"
78+
}
79+
],
80+
"outputHashing": "all"
81+
},
82+
"development": {
83+
"optimization": false,
84+
"extractLicenses": false,
85+
"sourceMap": true
86+
}
87+
},
88+
"defaultConfiguration": "production"
89+
},
90+
"serve": {
91+
"builder": "@angular-devkit/build-angular:dev-server",
92+
"configurations": {
93+
"production": {
94+
"buildTarget": "streaming-xp-app:build:production"
95+
},
96+
"development": {
97+
"buildTarget": "streaming-xp-app:build:development"
98+
}
99+
},
100+
"defaultConfiguration": "development"
101+
},
102+
"extract-i18n": {
103+
"builder": "@angular-devkit/build-angular:extract-i18n"
104+
}
105+
}
106+
}
107+
}
108+
}

0 commit comments

Comments
 (0)