The HTML5 based browser UI to webuml.
ON HOLD. The libraries used in this project are known to contain security issues. Whenever one forks this project, consider to upgrade all libraries before deploying somewhere.
- Node.js v10.25+
- npm (mostly included in node.js)
> npm install
This will trigger npm to download all dependencies and will trigger grunt for building everything.
You can build manually via
> grunt
You can run a watch task, which will automatically build everything, when files changed
> grunt watch
> npm start --profiles.active=local
Grunt asembles static content from src/main/ to build/. Grunt also assembles javascript files from src/main/js/** to build/webuml_ui[_min].js.
The grunt watch tasks watches the src/main folder and executes the task 'no-uglify' on any file change. Just reload your browser window afterwards.
To activate the grunt watch task:
- IntelliJ IDEA -> Right-Click on gruntfile.js -> Open Grunt Console -> Double-click on task "watch".
- Point your Browser to localhost:8080
- Make changes in html, js, css and reload browser window afterwards.
Node serves static content from build/ via express. Therefore start node:
Precondition: node.js plugin installed.
Create a node run configuration in IDEA:
- working-directory: webuml-ui
- JavaScript File: server.js
- Application Parameters: "start --profiles.active=local"
Point your browser to localhost:8080.
> npm test
OR
Configure IntelliJ IDEA to use Mocha test plugin. See https://www.jetbrains.com/idea/webhelp/running-mocha-unit-tests.html for details.
App: https://webuml-ui.example.org
Config: /Procfile
Properties: application-heroku.properties
External Javascript libraries are managed via Bower.
You only need to have a global installation of Bower, when you want to update libraries (jquery, fabric, etc.).
> bower update
will do the job for you ;-)