2019-11-07 15:54:58 +00:00
|
|
|
# Farmmaps viewer
|
2019-06-26 12:35:47 +00:00
|
|
|
|
2019-11-07 15:54:58 +00:00
|
|
|
This is a sample FarmMaps client in Angular 7.x.
|
2019-06-26 12:35:47 +00:00
|
|
|
|
2019-06-26 13:18:08 +00:00
|
|
|
|
2019-11-08 10:19:28 +00:00
|
|
|
## Quick start
|
2019-11-07 15:54:58 +00:00
|
|
|
|
2019-11-08 10:19:28 +00:00
|
|
|
Use one of the two options below to get started.
|
2019-11-07 15:54:58 +00:00
|
|
|
|
2019-11-08 10:19:28 +00:00
|
|
|
## Option 1, Using docker
|
2019-11-07 15:54:58 +00:00
|
|
|
|
2019-11-08 10:19:28 +00:00
|
|
|
*Dependencies*
|
2019-11-07 15:54:58 +00:00
|
|
|
|
2019-11-08 10:19:28 +00:00
|
|
|
* docker desktop
|
2019-11-07 15:54:58 +00:00
|
|
|
|
2019-11-08 10:19:28 +00:00
|
|
|
*Setup*
|
2019-11-07 15:54:58 +00:00
|
|
|
|
|
|
|
```
|
2019-11-08 09:41:22 +00:00
|
|
|
docker pull node:10.16.0
|
2019-11-07 15:54:58 +00:00
|
|
|
docker run -t -i --entrypoint /bin/bash -p 4200:4200 node:10.16.0
|
|
|
|
```
|
|
|
|
|
|
|
|
Inside the running container
|
|
|
|
```
|
2019-11-07 17:21:32 +00:00
|
|
|
git clone https://git.akkerweb.nl/FarmMaps/FarmMapsLib.git
|
2019-11-08 12:27:32 +00:00
|
|
|
cd FarmMapsLib
|
2019-11-07 15:54:58 +00:00
|
|
|
npm config set @farmmaps:registry https://repository.akkerweb.nl/repository/npm-group/
|
|
|
|
npm install -g @angular/cli
|
|
|
|
npm install
|
|
|
|
ng serve --host 0.0.0.0
|
|
|
|
```
|
2019-11-08 10:19:28 +00:00
|
|
|
*Go*
|
2019-11-07 15:54:58 +00:00
|
|
|
|
2019-11-08 10:19:28 +00:00
|
|
|
Point your browser to http://localhost:4200
|
2019-11-07 15:54:58 +00:00
|
|
|
|
2019-11-08 10:19:28 +00:00
|
|
|
## Option 2, Using local machine
|
|
|
|
|
|
|
|
*Dependencies*
|
|
|
|
|
|
|
|
* npm 6.9.0
|
|
|
|
* nodejs 10.16.0
|
|
|
|
* git
|
|
|
|
|
|
|
|
*Setup*
|
2019-06-26 12:35:47 +00:00
|
|
|
|
2019-11-07 15:54:58 +00:00
|
|
|
```
|
2019-11-07 17:21:32 +00:00
|
|
|
git clone https://git.akkerweb.nl/FarmMaps/FarmMapsLib.git
|
2019-11-08 10:19:28 +00:00
|
|
|
cd FarmMapsLib
|
2019-11-07 15:54:58 +00:00
|
|
|
npm config set @farmmaps:registry https://repository.akkerweb.nl/repository/npm-group/
|
|
|
|
npm install -g @angular/cli
|
|
|
|
npm install
|
|
|
|
ng serve
|
|
|
|
```
|
2019-11-08 10:19:28 +00:00
|
|
|
*Go*
|
|
|
|
|
|
|
|
Point your browser to http://localhost:4200
|
2019-06-26 12:35:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
|