Skip to content

Commit 3d033a9

Browse files
authored
Add Angular app templates to the starters (#316)
Add `ai-chatbot`, `ai-text-editor`, `dashboard`, `ecommerce`, `image-gallery` and `kanban` app templates to the Angular starters.
1 parent 411d370 commit 3d033a9

File tree

909 files changed

+113419
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

909 files changed

+113419
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
ij_typescript_use_double_quotes = false
14+
15+
[*.md]
16+
max_line_length = off
17+
trim_trailing_whitespace = false
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
.history/*
30+
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
34+
/connect.lock
35+
/coverage
36+
/libpeerconnection.log
37+
testem.log
38+
/typings
39+
40+
# System files
41+
.DS_Store
42+
Thumbs.db

starters/angular/ai-chatbot/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# AI Chatbot app template
2+
3+
Simple chatbot app that supports multiple chats.
4+
5+
The template has an implemented state management and API layer, plus a mocked API for demonstration purposes. It can be disabled from `app.config.ts`. This way, the template will perform network calls to your specified API URL set in `environment/`. Note that API-s already have a predefined design that can be explored both at the API layers or the mocks. Your API should follow that design or, alternatively, update the template API layer so that it suits your specific needs.
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+
## Building
16+
17+
To build the project run:
18+
19+
```bash
20+
ng build
21+
```
22+
23+
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.
24+
25+
## Running unit tests
26+
27+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
28+
29+
```bash
30+
ng test
31+
```
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"ai-chatbot": {
7+
"projectType": "application",
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "scss"
11+
}
12+
},
13+
"root": "",
14+
"sourceRoot": "src",
15+
"prefix": "acb",
16+
"architect": {
17+
"build": {
18+
"builder": "@angular-devkit/build-angular:application",
19+
"options": {
20+
"outputPath": "dist/ai-chatbot",
21+
"index": "src/index.html",
22+
"browser": "src/main.ts",
23+
"polyfills": ["zone.js"],
24+
"tsConfig": "tsconfig.app.json",
25+
"inlineStyleLanguage": "scss",
26+
"assets": [
27+
{
28+
"glob": "**/*",
29+
"input": "public"
30+
},
31+
{
32+
"glob": "**/*",
33+
"input": "node_modules/@ngx-templates/shared/assets",
34+
"output": "assets"
35+
}
36+
],
37+
"styles": [
38+
"src/styles.scss",
39+
"node_modules/@ngx-templates/shared/theme/src/theme.scss"
40+
],
41+
"stylePreprocessorOptions": {
42+
"includePaths": [
43+
"node_modules/@ngx-templates/shared/styles",
44+
"node_modules/@ngx-templates/shared/theme/src"
45+
]
46+
},
47+
"scripts": [],
48+
"server": "src/main.server.ts",
49+
"outputMode": "server",
50+
"ssr": {
51+
"entry": "src/server.ts"
52+
}
53+
},
54+
"configurations": {
55+
"production": {
56+
"budgets": [
57+
{
58+
"type": "initial",
59+
"maximumWarning": "500kB",
60+
"maximumError": "1MB"
61+
},
62+
{
63+
"type": "anyComponentStyle",
64+
"maximumWarning": "3kB",
65+
"maximumError": "4kB"
66+
}
67+
],
68+
"outputHashing": "all",
69+
"fileReplacements": [
70+
{
71+
"replace": "src/environments/environment.ts",
72+
"with": "src/environments/environment.prod.ts"
73+
}
74+
]
75+
},
76+
"development": {
77+
"optimization": false,
78+
"extractLicenses": false,
79+
"sourceMap": true
80+
}
81+
},
82+
"defaultConfiguration": "production"
83+
},
84+
"serve": {
85+
"builder": "@angular-devkit/build-angular:dev-server",
86+
"configurations": {
87+
"production": {
88+
"buildTarget": "ai-chatbot:build:production"
89+
},
90+
"development": {
91+
"buildTarget": "ai-chatbot:build:development"
92+
}
93+
},
94+
"defaultConfiguration": "development"
95+
},
96+
"extract-i18n": {
97+
"builder": "@angular-devkit/build-angular:extract-i18n"
98+
},
99+
"test": {
100+
"builder": "@angular-devkit/build-angular:karma",
101+
"options": {
102+
"polyfills": ["zone.js", "zone.js/testing"],
103+
"tsConfig": "tsconfig.spec.json",
104+
"inlineStyleLanguage": "scss",
105+
"assets": [
106+
{
107+
"glob": "**/*",
108+
"input": "public"
109+
},
110+
{
111+
"glob": "**/*",
112+
"input": "node_modules/@ngx-templates/shared/assets",
113+
"output": "assets"
114+
}
115+
],
116+
"styles": [
117+
"src/styles.scss",
118+
"node_modules/@ngx-templates/shared/theme/src/theme.scss"
119+
],
120+
"stylePreprocessorOptions": {
121+
"includePaths": [
122+
"node_modules/@ngx-templates/shared/styles",
123+
"node_modules/@ngx-templates/shared/theme/src"
124+
]
125+
},
126+
"scripts": []
127+
}
128+
},
129+
"lint": {
130+
"builder": "@angular-eslint/builder:lint",
131+
"options": {
132+
"lintFilePatterns": [
133+
"**/*.ts",
134+
"**/*.html"
135+
]
136+
}
137+
}
138+
}
139+
}
140+
},
141+
"cli": {
142+
"analytics": "e40b8025-7619-477b-93cc-efabe8396c81"
143+
}
144+
}

0 commit comments

Comments
 (0)