debian/bullseye
|
Last change
on this file since 7dc03d6 was 8ab397c, checked in by Joachim Langenbach <joachim.langenbach@…>, 6 years ago |
|
Improved and adapted documentation for angular 11 and angular cli build
|
-
Property mode
set to
100644
|
|
File size:
1.4 KB
|
| Rev | Line | |
|---|
| [8b53868] | 1 | Mapservice Webclient
|
|---|
| [8ab397c] | 2 | ====================
|
|---|
| [8b53868] | 3 |
|
|---|
| [8ab397c] | 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``:
|
|---|
| [8b53868] | 22 |
|
|---|
| 23 | .. code-block:: console
|
|---|
| 24 |
|
|---|
| [8ab397c] | 25 | npm install
|
|---|
| 26 |
|
|---|
| 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
|
|---|
| [8b53868] | 53 |
|
|---|
| [8ab397c] | 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``.
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.