Changeset 8ab397c for doc/app/components
- Timestamp:
- Feb 7, 2021, 12:16:17 PM (6 years ago)
- Branches:
- debian/bullseye, master
- Children:
- b1f0e30
- Parents:
- 4c267d7
- Location:
- doc/app/components
- Files:
-
- 4 edited
-
common.rst (modified) (1 diff)
-
device.rst (modified) (1 diff)
-
mapservice-webclient.rst (modified) (1 diff)
-
mapservice.rst (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
doc/app/components/common.rst
r4c267d7 r8ab397c 1 1 Common 2 ====== ========2 ====== 3 3 4 4 GNUBoat common contains some helpful scripts: 5 5 6 * :doc:`../executables/gnuboat-log-converter`: converts logfiles from NMEA0183 text format into different other formats 7 * :doc:`../executables/gnuboat-log-analyser`: creates raster tiles out of logfiles 8 * :doc:`../executables/gnuboat-log-uploader`: uploads logfiles to the mapservice 6 * :doc:`../executables/gnuboat-log-converter`: converts logfiles from NMEA0183 7 text format into different other formats 8 * :doc:`../executables/gnuboat-log-analyser`: creates raster tiles out of 9 logfiles 10 * :doc:`../executables/gnuboat-log-uploader`: uploads logfiles to the 11 mapservice 9 12 10 All scripts display a help with ``--help`` and have a manpage with additional information about their usage. 13 All scripts display a help with ``--help`` and have a manpage with additional 14 information about their usage. -
doc/app/components/device.rst
r4c267d7 r8ab397c 1 1 Device 2 ====== ========2 ====== 3 3 4 The GNUBoat Device contains all components to log the data and interact with the5 user through a web interface. To do so, it consists of three components:4 The GNUBoat Device contains all components to log the data and interact with 5 the user through a web interface. To do so, it consists of three components: 6 6 7 * deviceservice: a webservice serving the webclient and connecting to the mapservice, if a network connection is available 8 * gnuboat-daemon: The daemon queriing the NMEA2000 network and GPS dongle, storing the data to the log file and the rrd database, used by te deviceservice 9 * The webclient as the user frontend for the gnuboat device. Actually it is served by deviceservice 7 * deviceservice: a webservice serving the webclient and connecting to the 8 mapservice, if a network connection is available 9 * gnuboat-daemon: The daemon queriing the NMEA2000 network and GPS dongle, 10 storing the data to the log file and the rrd database, used by te 11 deviceservice 12 * The webclient as the user frontend for the gnuboat device. Actually it is 13 served by deviceservice 10 14 11 15 Production environment 12 16 ---------------------- 13 17 14 It is advised to install the provided debian package and configure it afterwards15 with help of the delivered puppet configuration.18 It is advised to install the provided debian package and configure it 19 afterwards with help of the delivered puppet configuration. 16 20 17 21 Development environment 18 22 ----------------------- 19 23 20 In this mode, the deviceservice simulates entries to the rrd database. Therefore 21 the webclient is fully functional, without the need of a GPS device or a NMEA2000 22 network. gnuboat-device-daemon is not needed for the same reason. 24 If not already done, you need to build and install the python module. 25 Make sure, that all needed dependencies are installed. 23 26 24 To start it in development mode see :doc:`../executables/gnuboat-dev-deviceservice`. 27 .. code-block:: console 25 28 26 If you want to test the interaction with a mapservice instance, run the mapservice 27 in development mode as mentioned below in parallel. 29 python setup.py install 28 30 29 Than go to [http://localhost:8090] to visit the client or read the api specification 30 via [http://localhost:8090/deviceservice/v1/ui/]. 31 In this mode, the deviceservice simulates entries to the rrd database. 32 Therefore the webclient is fully functional, without the need of a GPS 33 device or a NMEA2000 network. gnuboat-device-daemon is not needed for the 34 same reason. 35 36 To start it in development mode see 37 :doc:`../executables/gnuboat-dev-deviceservice`. 38 39 If you want to test the interaction with a mapservice instance, run the 40 mapservice in development mode as mentioned below in parallel. 41 42 Than go to http://localhost:8090 to visit the client or read the api 43 specification via http://localhost:8090/deviceservice/v1/ui/. -
doc/app/components/mapservice-webclient.rst
r4c267d7 r8ab397c 1 1 Mapservice Webclient 2 ==================== ========2 ==================== 3 3 4 Run the following command in src/mapservice-webclient (you need node.js installed!): 4 Production environment 5 ---------------------- 6 7 The process to install the webapp in production mode contains the steps 8 1. build the nodejs app 9 2. copy the result to a webserver 10 3. configure the webserver to serve the webapp 11 12 Building the webapp 13 ******************* 14 15 We recommend to use our debian package. If it is not applicable for you, 16 follow this instructions to set it up on your own. 17 18 For this commands to work, you need node.js to be installed. 19 20 At first you need to install all node dependencies. To do so, execute the 21 following code in ``src/mapservice-webclient``: 5 22 6 23 .. code-block:: console 7 24 8 npm start25 npm install 9 26 10 Please start the mapservice also and than visit [http://localhost:8001] in your browser. 11 If you started :doc:`../executables/gnuboat-dev-mapservice` in development mode, as described above, you can 12 login with user ``jane`` and ``testpass``. 27 To build the webapp run the following code in the same folder: 28 29 .. code-block:: console 30 31 ng build --prod 32 33 Copy the result to a webserver 34 ****************************** 35 36 Configure the webserver 37 *********************** 38 39 Development environment 40 ----------------------- 41 42 The first step is to install all the needed dependencies. To do so run the 43 following command in ``src/mapservice-webclient`` (you need node.js 44 installed!) to install all node dependencies: 45 46 .. code-block:: console 47 48 npm install 49 50 To start the development server run: 51 52 .. code-block:: console 53 54 ng serve 55 56 Please start the mapservice also and than visit http://localhost:4200 57 in your browser. If you started :doc:`../executables/gnuboat-dev-mapservice` 58 in development mode, you can login with user ``jane`` and ``testpass``. -
doc/app/components/mapservice.rst
r4c267d7 r8ab397c 1 1 Mapservice 2 ========== ========2 ========== 3 3 4 4 Production environment 5 5 ---------------------- 6 6 7 It is advised to install the provided debian package and configure it afterwards8 with help of the delivered puppet configuration.7 It is advised to install the provided debian package and configure it 8 afterwards with help of the delivered puppet configuration. 9 9 10 10 Development environment 11 11 ----------------------- 12 12 13 To start it in development mode see :doc:`../executables/gnuboat-dev-mapservice`. 13 If not already done, you need to build and install the python module. 14 Make sure, that all needed dependencies are installed. 14 15 15 You may access the api specification via [http://localhost:8090/deviceservice/v1/ui/] afterwards. 16 .. code-block:: console 17 18 python setup.py install 19 20 To start it in development mode see 21 :doc:`../executables/gnuboat-dev-mapservice`. 22 23 You may access the api specification via 24 http://localhost:8090/deviceservice/v1/ui/ afterwards.
Note:
See TracChangeset
for help on using the changeset viewer.
