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.
## Code scaffolding
## Run
- 1. Install all dependency and 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.
- if you don't want to install all dependencies, you can simply run the application in a container.
1.`docker build -t frontend-osm .`
2.`docker run -p 4200:80 frontend-osm:latest`
3. Navigate to `http://localhost:4200/`
- 2. Send messages to a `hivemq` public brocker
- topic `ipos/client/position`
- new positions
-```json
{
"object": [
{
"id": "Employee1",
"sensorId": "UWB_1",
"type": "HUMAN",
"sensorType": "UWB",
"position": {
"refSystemId": "ROOT",
"point": {
"x": 13,
"y": 22,
"z": 3
},
"accuracy": 1
},
"orientation": {
"x": 1,
"y": 0.5,
"z": 1,
"w": 1.5
},
"lastPosUpdate": "2021-09-14T09:41:20+00:00"
}
],
"type": "EntryNotification"
}
```
- More objects can be added to the `"object": []`
- There are special colours for objects with id `"Employee1"` - `"Employee4"`. Config: [MarkerColorMap](src/environments/environment.ts)
- topic `ipos/client/root`
-```json
{
"refSystemId": "ROOT",
"point": {
"latitude": 51.02535,
"longitude": 13.72285
},
"accuracy": 1
}
```
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`.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
## Help
- This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.9.
- Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
- 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`.
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
## Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.