Skip to content

webXcerpt/openCPQ-example-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openCPQ Components

A demo example for openCPQ.

This demo lists all available primitive and compound components from openCPQ, as well as some application-specific components.

Running the Components in the Web

The configurator can be started from http://opencpq.webxcerpt.com/examples/components/.

Building and Serving the Configurator

The commands below require that you have the programs git, node (actually the node program coming with iojs and npm (also coming with iojs) installed and in your "PATH".

Run the following commands to build and serve the configurator:

$ git clone https://github.com/webXcerpt/openCPQ-example-components.git
$ cd openCPQ-example-components
$ npm install
$ npm run dev-server

Now point your browser to http://localhost:8080/webpack-dev-server/index.html. The development server will observe your changes to the code, rebuilding the application as needed and reloading it in your browser. This is quite comfortable for configurator development. You can stop the development server with Control-C.

To build the application in directory ./dst/ in "production mode", run

$ npm run build

(still from within openCPQ-example-components).

To deploy that build via FTP to your HTTP server you can run

$ npm run deploy

This requires that you have a file deployment.json of the form

{
  "host": "...",
  "user": "...",
  "password": "...",
  "folder": "..."
}

providing the FTP location and credentials for the deployment.

About

An example application for openCPQ using all the components

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published