Skip to content

Commit

Permalink
Gawati viewer service setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Arunadevi committed Jul 23, 2018
1 parent 018a0ce commit bd6cd8b
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 63 deletions.
9 changes: 9 additions & 0 deletions docs/source/development/dev-and-prod-testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,15 @@ The full apache configuration is shown below.
SetEnv proxy-nokeepalive 1
</Location>
# gawati-viewer-service
<Location ~ "/gwv/(.*)">
AddType text/cache-manifest .appcache
ProxyPassMatch "http://localhost:9005/gwv/$1"
ProxyPassReverse "http://localhost:9005/gwv/$1"
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>
</VirtualHost>
.. note::
Expand Down
94 changes: 31 additions & 63 deletions docs/source/development/dev-env-local.rst
Original file line number Diff line number Diff line change
Expand Up @@ -204,69 +204,6 @@ For development environments, clone from git and install it:
The Gawati Portal has two runnable components, the portal http server which provides access to REST services, and a cron component that runs scheduled tasks periodically.


Running the REST service
---------------------------

Run the following in the extracted folder to setup the server:

.. code-block:: bash
:linenos:
npm install
Assuming you extracted the portal server into : `/home/web/portal-fe`, from that folder, run :

.. code-block:: bash
:linenos:
node ./bin/www
To start up the web-service. By default it starts on PORT 9001. You can change that by running it as:

.. code-block:: bash
:linenos:
PORT=11001 node ./bin/www
Running the cron service
------------------------

This is started by simply running:

.. code-block:: bash
:linenos:
node ./cron.js
Additional configuration to integrate with the Other services
-------------------------------------------------------------

The :ref:`gawati-portal` integrates with the :ref:`gawati-profiles` system, it needs to know on which host and port other services are running.

This is done by configuring the ``configs/gawati.json`` file, you will need to change ``urlBase`` parameter to point to the specific base URLs of the individiual services.

.. code-block:: json
:linenos:
{
"gawati-portal-ui":{
"urlBase": "http://localhost:3000"
},
"gawati-portal-fe":{
"urlBase": "http://localhost:9001"
},
"gawati-profiles-ui":{
"urlBase": "http://localhost:9004"
},
"gawati-profiles-fe":{
"urlBase": "http://localhost:9003"
}
}
Apache Config
-------------

Expand Down Expand Up @@ -364,8 +301,39 @@ The recommended order is as follows:
#. :ref:`inst-gawati-portal-fe`
#. :ref:`inst-gawati-profiles-fe`
#. :ref:`inst-gawati-profiles-ui`
#. :ref:`inst-gawati-viewer-service`
#. :ref:`inst-gawati-portal-ui`

.. _inst-gawati-viewer-service:

Installing Gawati Viewer Service
================================

Extract the contents of the zip file into any directory.

For development environments, clone from git and install it:

.. code-block:: bash
:linenos:
git clone https://github.com/gawati/gawati-viewer-service.git
npm install
The Gawati Viewer services are invoked by the gawati-viewer npm package. The service can convert XML/DOCX to HTML


Running the REST service
---------------------------

Run the following in the extracted folder to setup the server:

Assuming you extracted the portal server into : `/home/web/gawati-viewer-service`, from that folder, run :

.. code-block:: bash
:linenos:
node ./bin/www
.. _inst-gawati-profiles:

Expand Down
9 changes: 9 additions & 0 deletions docs/source/development/portal-server-conf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,13 @@
ProxyPassReverse "http://localhost:9001/gwp/$1"
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>
# gawati-viewer-service
<Location ~ "/gwv/(.*)">
AddType text/cache-manifest .appcache
ProxyPassMatch "http://localhost:9005/gwv/$1"
ProxyPassReverse "http://localhost:9005/gwv/$1"
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</Location>

0 comments on commit bd6cd8b

Please sign in to comment.