source: doc/app/components/mapservice-webclient.rst@ e6aa6a3

debian/bullseye
Last change on this file since e6aa6a3 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

Mapservice Webclient

Production environment

The process to install the webapp in production mode contains the steps
  1. build the nodejs app
  2. copy the result to a webserver
  3. configure the webserver to serve the webapp

Building the webapp

We recommend to use our debian package. If it is not applicable for you, follow this instructions to set it up on your own.

For this commands to work, you need node.js to be installed.

At first you need to install all node dependencies. To do so, execute the following code in src/mapservice-webclient:

npm install

To build the webapp run the following code in the same folder:

ng build --prod

Copy the result to a webserver

Configure the webserver

Development environment

The first step is to install all the needed dependencies. To do so run the following command in src/mapservice-webclient (you need node.js installed!) to install all node dependencies:

npm install

To start the development server run:

ng serve

Please start the mapservice also and than visit http://localhost:4200 in your browser. If you started :doc:`../executables/gnuboat-dev-mapservice` in development mode, you can login with user jane and testpass.

?
Note: See TracBrowser for help on using the repository browser.