Skip to content

Commit

Permalink
case #23 gruelling day!
Browse files Browse the repository at this point in the history
  • Loading branch information
DickChesterwood committed May 16, 2018
1 parent 7f830e9 commit 3242d55
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 46 deletions.
1 change: 1 addition & 0 deletions k8s-fleetman-webapp-angular/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
42 changes: 21 additions & 21 deletions k8s-fleetman-webapp-angular/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgModule, Inject } from '@angular/core';

import { AppComponent } from './app.component';
import { VehiclesComponent } from './vehicles/vehicles.component';
import { VehicleService } from './vehicle.service';

import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
import { InMemoryDataService } from './in-memory-data.service';
import { HttpClientModule } from '@angular/common/http';
import { MapComponent } from './map/map.component';

Expand All @@ -18,22 +17,25 @@ import { HeaderComponent } from './header/header.component';

import {NgbModule} from '@ng-bootstrap/ng-bootstrap';

import { DOCUMENT } from '@angular/platform-browser';

const stompConfig: StompConfig = {
// Which server?
url: 'ws://192.168.99.100:30030/updates',
headers: {
},
// How often to heartbeat?
// Interval in milliseconds, set to 0 to disable
heartbeat_in: 0, // Typical value 0 - disabled
heartbeat_out: 20000, // Typical value 20000 - every 20 seconds
// Wait in milliseconds before attempting auto reconnect
// Set to 0 to disable
// Typical value 5000 (5 seconds)
reconnect_delay: 5000,

// Will log diagnostics on console
debug: false
// Which server?
// url: "ws://" + window.location.hostname + ":30030/updates",
url: "ws://" + window.location.hostname + ":8080/updates",
headers: {
},
// How often to heartbeat?
// Interval in milliseconds, set to 0 to disable
heartbeat_in: 0, // Typical value 0 - disabled
heartbeat_out: 20000, // Typical value 20000 - every 20 seconds
// Wait in milliseconds before attempting auto reconnect
// Set to 0 to disable
// Typical value 5000 (5 seconds)
reconnect_delay: 5000,

// Will log diagnostics on console
debug: true
};

@NgModule({
Expand All @@ -47,9 +49,6 @@ const stompConfig: StompConfig = {
BrowserModule,
HttpClientModule,
LeafletModule.forRoot(),
HttpClientInMemoryWebApiModule.forRoot(
InMemoryDataService, { dataEncapsulation: false }
),
NgbModule.forRoot()
],
providers: [VehicleService,
Expand All @@ -60,4 +59,5 @@ const stompConfig: StompConfig = {
}],
bootstrap: [AppComponent]
})
export class AppModule { }
export class AppModule {
}
23 changes: 0 additions & 23 deletions k8s-fleetman-webapp-angular/src/app/in-memory-data.service.ts

This file was deleted.

2 changes: 1 addition & 1 deletion k8s-manifests/replica-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ spec:
containers:
- name: fleetman-webapp
image: richardchesterwood/k8s-fleetman-webapp-angular:release1

imagePullPolicy: Always
2 changes: 1 addition & 1 deletion k8s-manifests/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
ports:
- name: http
port: 8080
nodePort: 30000
nodePort: 30030
type: NodePort
---
kind: Service
Expand Down

0 comments on commit 3242d55

Please sign in to comment.