Skip to content

Commit

Permalink
Merge pull request #9 from rico-projects/addAngularSample
Browse files Browse the repository at this point in the history
Add angular sample
  • Loading branch information
madmas committed Jan 14, 2019
2 parents 40579c9 + e295d96 commit 3aa9e8f
Show file tree
Hide file tree
Showing 34 changed files with 13,157 additions and 12 deletions.
4 changes: 2 additions & 2 deletions todo-list/README.adoc
Expand Up @@ -69,15 +69,15 @@ In that case the application must be reachable under `http://localhost:8080/todo
To start the JavaFX client simply run `mvn jfx:run` from the client-javafx folder.
Next to this the client can be started by the dev.rico.samples.todo.client.ToDoClient class.

==== AngularJS
==== AngularJS and Angular

Jetty-Maven-Plugin is preconfigured to serve the client, just start

```
mvn jetty:run
```

After this, you can access the sample via `http://localhost:8081`
After this, you can access the sample via `http://localhost:8081` (AngularJS) respectively `http://localhost:8083` (Angular).

==== Polymer

Expand Down
13 changes: 13 additions & 0 deletions todo-list/client-angular/.editorconfig
@@ -0,0 +1,13 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
43 changes: 43 additions & 0 deletions todo-list/client-angular/.gitignore
@@ -0,0 +1,43 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc

# dependencies
/node_modules

# profiling files
chrome-profiler-events.json
speed-measure-plugin.json

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db
9 changes: 9 additions & 0 deletions todo-list/client-angular/README.adoc
@@ -0,0 +1,9 @@
= Rico Angular ToDo-List Demo

== Development server

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.

== Build

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.
109 changes: 109 additions & 0 deletions todo-list/client-angular/angular.json
@@ -0,0 +1,109 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"rico-angular-demo-app": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/rico-angular-demo-app",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "rico-angular-demo-app:build"
},
"configurations": {
"production": {
"browserTarget": "rico-angular-demo-app:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "rico-angular-demo-app:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"src/styles.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts": [],
"assets": [
"src/favicon.ico",
"src/assets"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
},
"defaultProject": "rico-angular-demo-app"
}

0 comments on commit 3aa9e8f

Please sign in to comment.