-
Notifications
You must be signed in to change notification settings - Fork 10
Development Guide
Morgan Guimard edited this page Jan 18, 2017
·
9 revisions
- 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
Once all is ready you can run the following npm commands :
-
npm run devto launch the grunt server -
npm run cleanto cleandistfolder -
npm run buildto build the app todistfolder
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": "/"
}