[GIS] QWC2 first install

node-jsqgisqgis-web-client

I'm trying to install QGIS Web Client 2 (QWC2) following instructions in "Quick start" documentation:
https://github.com/qgis/qwc2-demo-app/blob/master/doc/QWC2_Documentation.md#quick-start

So, I have successfully executed the qwc2-demo-app by "yarn start".
The next step tell:

The final step is to compile a deployable application bundle for production:
$ yarn run prod.
You can then deploy the contents of the prod folder to your web server root.

I run "yarn run prod" and a folder "prod" is created, but I didn't understand how to use it in my web server.

Best Answer

Running "yarn run prod" will create your actual application inside the prod folder. Now we simply move this folder to your htdocs/root folder so apache or some other webserver will serve it.

That's it, now your new client will be accessible across your network. You should access it on:

mycomputerIP:<PortWhereWebserverListens>/prod

If this is your first time using the client, you will need a webserver to serve your website.

Related Question