Skip to content

Building and Testing 3DuF

EricXie-02 edited this page Sep 30, 2025 · 24 revisions

Node and npm: Download and install

Other than npm install, all npm run commands can be executed from the command line in any folder in the application directory.

Note that the gh-pages branch corresponds to the version of 3DuF on 3Duf.org

Install dependencies first

From the application's root folder (the one with package.json in it), run: sudo npm install. Please note that running the command without administrator privileges will not complete the dependency installations.

Compiling

To compile and bundle the main app script (3DuFapp.js), run: npm run compile.

To watch the source code and re-compile on changes, run: npm run watch_compile

Testing (Our Current Coverage is not complete)

To run the full suite of unit tests, run: npm test

To watch the source code and re-run tests on changes, run: npm run watch_test

To check test coverage, run: npm run cover, and then open coverage/lcov-report/index.html in a web browser.

To start the app run: npm run vue-serve

Clone this wiki locally