Skip to content

Development Guide

Morgan Guimard edited this page Jan 18, 2017 · 9 revisions

DocDokuPLM web client

Prerequisites

  • DocDokuPLM server (core engine)
  • node >= 4.2.6
  • npm
  • git
  • Apache or Nginx or any proxy capable software (optional)

Node module required as global: grunt-cli. To install it run (may requires sudo on linux)

npm install -g grunt-cli

Npm scripts

Once all is ready you can run the following npm commands :

  • npm run dev to launch the grunt server
  • npm run clean to clean dist folder
  • npm run build to build the app to dist folder

Grunt commands

Run npm install && bower install before using grunt

  • grunt ou grunt build: build all modules
  • grunt build-module:: build a specific module
  • grunt serve: serve the application files on port 9001 with livereload
  • grunt serve:dist: build the application and serve the dist folder on port 9001
  • grunt clean: clean dist folder

The application use cross-domain requests to a DocdokuPLM server instance, but it can be configured for same protocol, domain and port with a proxy. See the Proxy example configuration page

You can edit app/webapp.properties.json if your configuration is not the default one.

{
    # Define here DocdokuPLM server instance adresss
    "server": {
        "ssl": false,
        "domain": "localhost",
        "port": 8080,
        "contextPath": "/"
    },

    # Define here the context path for the webapp
    "contextPath": "/"
}
Clone this wiki locally