Skip to content

Commit 683d57e

Browse files
committed
initial project data
1 parent 8cb99dc commit 683d57e

File tree

109 files changed

+2208071
-2
lines changed

Some content is hidden

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

109 files changed

+2208071
-2
lines changed

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.gitignore

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
/material
4+
5+
# compiled output
6+
/dist
7+
/tmp
8+
/out-tsc
9+
# Only exists if Bazel was run
10+
/bazel-out
11+
12+
# dependencies
13+
/node_modules
14+
15+
# profiling files
16+
chrome-profiler-events*.json
17+
speed-measure-plugin*.json
18+
19+
# IDEs and editors
20+
/.idea
21+
.project
22+
.classpath
23+
.c9/
24+
*.launch
25+
.settings/
26+
*.sublime-workspace
27+
28+
# IDE - VSCode
29+
.vscode/*
30+
!.vscode/settings.json
31+
!.vscode/tasks.json
32+
!.vscode/launch.json
33+
!.vscode/extensions.json
34+
.history/*
35+
36+
# misc
37+
/.sass-cache
38+
/connect.lock
39+
/coverage
40+
/libpeerconnection.log
41+
npm-debug.log
42+
yarn-error.log
43+
testem.log
44+
/typings
45+
46+
# System Files
47+
.DS_Store
48+
Thumbs.db

README.md

+139-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,139 @@
1-
# angular-animation-framework
2-
THREE.js Animation Framework as Angular component
1+
# Angular Animation Framework
2+
3+
| Frameworks | | Links |
4+
| ---:| :--- | :--- |
5+
| <img src="https://angular.io/assets/images/logos/angular/angular.svg" height="64" alt="Angular Logo" /><br>Angular CLI | Client Side TypeScript App | [WEBSITE](https://angular.io)<br> [README](https://github.com/angular/angular-cli/blob/master/README.md)|
6+
| <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/25/WebGL_Logo.svg/1199px-WebGL_Logo.svg.png" height="64" alt="WebGL Logo" /><br>Three-js | 3D Graphic API | [WEBSITE](https://threejs.org/)<br> [README](https://github.com/mrdoob/three.js/blob/dev/README.md)|
7+
8+
9+
10+
11+
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License</a>.
12+
###### *© 2020 - Moritz Petzka - [petzka.com](https://petzka.com/)*
13+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.5.
14+
15+
## Installation
16+
17+
Run `npm install -g @angular/cli` to install Angular CLI.
18+
Run `npm install` to install dependencies.
19+
20+
21+
## Development server
22+
23+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
24+
25+
## Code scaffolding
26+
27+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
28+
29+
## Build
30+
31+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
32+
33+
## Running unit tests
34+
35+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
36+
37+
## Running end-to-end tests
38+
39+
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
40+
41+
## Further help
42+
43+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
44+
45+
46+
# Important Files
47+
48+
* [/src/](./src)
49+
* [/app/..](./src/app)
50+
* [/three-animation/](./src/app/three-animation) <sub><sup>THREE.js animation framework component</sup></sub>
51+
* [three-animation.component.ts](./src/app/three-animation/three-animation.component.ts) <sub><sup>main component</sup></sub>
52+
* [/start-animation/](./src/app/start-animation) <sub><sup>demo component - how to</sup></sub>
53+
* [start-animation.component.ts](./src/app/start-animation/start-animation.component.ts)
54+
55+
- - -
56+
# Other Helpful Deployment Stuff
57+
```bash
58+
# pull with docker
59+
$ docker pull mopet/tator:latest
60+
61+
# pull with npm:
62+
$ npm run docker:pull
63+
64+
65+
66+
# build with docker
67+
$ docker build -t mopet/tator:latest .
68+
69+
# build with npm:
70+
$ npm run docker:build
71+
72+
73+
74+
# run image with docker
75+
$ docker run -p 3000:3000 mopet/tator:latest
76+
77+
# run image w with npm:
78+
$ npm run docker:build
79+
```
80+
81+
#### for killing all current running docker container / images:
82+
83+
```bash
84+
# List Images
85+
$ docker ps -a
86+
87+
# Stop All Container
88+
$ docker stop $(docker ps -a -q)
89+
90+
# Remove All Container
91+
$ docker rm $(docker ps -a -q)
92+
93+
# Remove All Images
94+
$ docker rmi $(docker images -q)
95+
96+
# All In One
97+
$ docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q) && docker rmi $(docker images -q)
98+
```
99+
100+
#### Installation - npm only (without docker)
101+
102+
```bash
103+
# NestJS Server
104+
$ npm install
105+
106+
# Angular App
107+
$ cd tator-app/
108+
$ npm install
109+
```
110+
111+
#### Build App - npm only (without docker)
112+
113+
```bash
114+
# NestJS Server
115+
$ npm run build
116+
117+
# Angular App
118+
$ npm run ng:build
119+
```
120+
121+
#### Serve Dev Mode (Angular)
122+
123+
```bash
124+
# ng serve (with proxies)
125+
$ npm run ng:serve
126+
```
127+
128+
#### Running The Server (NestJS)
129+
130+
```bash
131+
# development
132+
$ npm run start
133+
134+
# watch mode
135+
$ npm run start:dev
136+
137+
# production mode
138+
$ npm run start:prod
139+
```

angular.json

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"angular-animation-framework": {
7+
"projectType": "application",
8+
"schematics": {},
9+
"root": "",
10+
"sourceRoot": "src",
11+
"prefix": "app",
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "dist/angular-animation-framework",
17+
"index": "src/index.html",
18+
"main": "src/main.ts",
19+
"polyfills": "src/polyfills.ts",
20+
"tsConfig": "tsconfig.app.json",
21+
"aot": true,
22+
"assets": [
23+
"src/favicon.ico",
24+
"src/assets"
25+
],
26+
"styles": [
27+
"src/styles.css"
28+
],
29+
"scripts": []
30+
},
31+
"configurations": {
32+
"production": {
33+
"fileReplacements": [
34+
{
35+
"replace": "src/environments/environment.ts",
36+
"with": "src/environments/environment.prod.ts"
37+
}
38+
],
39+
"optimization": true,
40+
"outputHashing": "all",
41+
"sourceMap": false,
42+
"extractCss": true,
43+
"namedChunks": false,
44+
"extractLicenses": true,
45+
"vendorChunk": false,
46+
"buildOptimizer": true,
47+
"budgets": [
48+
{
49+
"type": "initial",
50+
"maximumWarning": "2mb",
51+
"maximumError": "5mb"
52+
},
53+
{
54+
"type": "anyComponentStyle",
55+
"maximumWarning": "6kb",
56+
"maximumError": "10kb"
57+
}
58+
]
59+
}
60+
}
61+
},
62+
"serve": {
63+
"builder": "@angular-devkit/build-angular:dev-server",
64+
"options": {
65+
"browserTarget": "angular-animation-framework:build"
66+
},
67+
"configurations": {
68+
"production": {
69+
"browserTarget": "angular-animation-framework:build:production"
70+
}
71+
}
72+
},
73+
"extract-i18n": {
74+
"builder": "@angular-devkit/build-angular:extract-i18n",
75+
"options": {
76+
"browserTarget": "angular-animation-framework:build"
77+
}
78+
},
79+
"test": {
80+
"builder": "@angular-devkit/build-angular:karma",
81+
"options": {
82+
"main": "src/test.ts",
83+
"polyfills": "src/polyfills.ts",
84+
"tsConfig": "tsconfig.spec.json",
85+
"karmaConfig": "karma.conf.js",
86+
"assets": [
87+
"src/favicon.ico",
88+
"src/assets"
89+
],
90+
"styles": [
91+
"src/styles.css"
92+
],
93+
"scripts": []
94+
}
95+
},
96+
"lint": {
97+
"builder": "@angular-devkit/build-angular:tslint",
98+
"options": {
99+
"tsConfig": [
100+
"tsconfig.app.json",
101+
"tsconfig.spec.json",
102+
"e2e/tsconfig.json"
103+
],
104+
"exclude": [
105+
"**/node_modules/**"
106+
]
107+
}
108+
},
109+
"e2e": {
110+
"builder": "@angular-devkit/build-angular:protractor",
111+
"options": {
112+
"protractorConfig": "e2e/protractor.conf.js",
113+
"devServerTarget": "angular-animation-framework:serve"
114+
},
115+
"configurations": {
116+
"production": {
117+
"devServerTarget": "angular-animation-framework:serve:production"
118+
}
119+
}
120+
}
121+
}
122+
}},
123+
"defaultProject": "angular-animation-framework"
124+
}

browserslist

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# You can see what browsers were selected by your queries by running:
6+
# npx browserslist
7+
8+
> 0.5%
9+
last 2 versions
10+
Firefox ESR
11+
not dead
12+
not IE 9-11 # For IE 9-11 support, remove 'not'.

e2e/protractor.conf.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// @ts-check
2+
// Protractor configuration file, see link for more information
3+
// https://github.com/angular/protractor/blob/master/lib/config.ts
4+
5+
const { SpecReporter } = require('jasmine-spec-reporter');
6+
7+
/**
8+
* @type { import("protractor").Config }
9+
*/
10+
exports.config = {
11+
allScriptsTimeout: 11000,
12+
specs: [
13+
'./src/**/*.e2e-spec.ts'
14+
],
15+
capabilities: {
16+
browserName: 'chrome'
17+
},
18+
directConnect: true,
19+
baseUrl: 'http://localhost:4200/',
20+
framework: 'jasmine',
21+
jasmineNodeOpts: {
22+
showColors: true,
23+
defaultTimeoutInterval: 30000,
24+
print: function() {}
25+
},
26+
onPrepare() {
27+
require('ts-node').register({
28+
project: require('path').join(__dirname, './tsconfig.json')
29+
});
30+
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
31+
}
32+
};

0 commit comments

Comments
 (0)