PrizmDoc v12.4 - Updated
How to Configure the Demo on Windows
Developer Guide > PrizmDoc Server > How To > Convert Content with Content Conversion Service > Content Conversion Demo > How to Configure the Demo on Windows

Demo Configuration

After the installation, test the sample application in a browser:

The demo.config file can be updated to customize the application host address, application port, and services port.

Example
Copy Code
{
    "logging": {
        "consoleLogFilePath":
 "%ALLUSERSPROFILE%\Accusoft\Prizm\Logs\CssDemoService.console.log"
    },
    "httpService": {
        "port": 3000
    },
    "apiService": {
        "port": 18681,
        "host": "localhost"
    }
}

Demo Directory Structure

 

File \ Folder

Description

app.js

.This is a node-js app which hosts the express app and proxy’s service requests.

proxyFilter.js

.This filters requests to the conversion service and white-lists headers to and from the service.

package.json

.This is the node-js package json file.

node_modules

.These are the node-js npm dependencies.

lib\config.js

This object reads the configuration file used to define the application port and service host and port..

demo.config

This is a configuration file used to define the application port and service host and port.

public\app.js

This contains angular js app controller, main service and some helper directives.

public\app.css

This is the application CSS..

public\index.js

This is the entry point to the app and container for the child views.

public\uploadView\upload.module.js

This is the angular js controller for the upload functionality.

public\requestCfgView\requestCfg.html

This is the markup for the CCS request configuration view.

public\requestCfgView\requestCfg.module.js

This is the controller for the CCS request configuration view.

public\requestView\request.html

This is the markup for the request configuration.

public\requestView\request.module.js

This is the controller for the request configuration.

public\conversionView\conversion.html

This is the markup for the request button.

public\conversionView\conversion.module.js

This is the controller for the request button.

public\conversionDataView\conversionData.html

This is the markup for the conversion request\response view.

public\conversionDataView\conversionData.module.js

This is the controller for the conversion request\response view.

public\downloadView\download.html

This is the markup for the download view.

public\downloadView\download.module.js

This is the controller for the download view.

Starting & Stopping the Demo

On Windows, the PrizmDemo service should ideally be started/stopped from the Windows service management console. As part of the PrizmDoc installation, the service should be configured to start automatically. If you need to start, stop, or restart, use the following instructions:

  1. Log onto the system using an account with administrator privileges.
  2. Click Start > Run.
  3. Type services.msc.
  4. Press Enter.
  5. Find PrizmDemo in the list of services, and right-click on the service to access the context menu.
  6. To Start the Service: Click Start and wait for the service to start. The status should update to "started" (this option will only be available if the service is not running).
  7. To Stop the Service: Click Stop in the right-click menu and wait for the service control dialog. The status will be updated to be blank (this option will only be available if the service is already started).
  8. To Restart the Service: Click Restart and wait for the service control dialog. (This option will only be available if the service is already started.)

If access to the control panel is not available, services can also be started/stopped from the command line using the following commands:

Example
Copy Code
net start PrizmDemp
net stop PrizmDemo

The PrizmDemo Windows service will log certain status messages to the Windows Event Log. These messages can be helpful in diagnosing problems while starting and stopping the service. To view the Windows Event Log, use the following instructions:

  1. Log onto the system using an account with administrator privileges.
  2. Click Start > Run.
  3. Type eventvwr.
  4. Press Enter.
  5. Expand Applications and Services Logs.
  6. Click PrizmDemo.