Skip to content

Latest commit

 

History

History
71 lines (43 loc) · 1.8 KB

DEVNOTES.md

File metadata and controls

71 lines (43 loc) · 1.8 KB

Prerequisites

Stable Node.js version

Build instructions

npm install
npm start

For production build:

npm run build

You could also build only the style with command

npm run style

Indigo Service

Ketcher uses Indigo Service for server operations. You can use --api-path parameter to start with it:

npm start -- --api-path=<server-url>

For production build:

npm run build -- --api-path=<server-url>

You can find the instruction for service installation here.

3D Viewer

Ketcher uses Miew for viewing and editing data in 3D. For use of this functionality you need to add parameter --miew-path, having specified a path to directory with Miew files: Miew.min.js and Miew.min.css:

npm start -- --miew-path=<miew-dir>

For production build:

npm run build -- --miew-path=<miew-dir>

You can find the latest version of viewer here. The last checked version - 0.7.13.

Tests instructions

You can start tests for input/output .mol-files and render.

npm test

Tests are started for all structures in test/fixtures directory.

To start the tests separately:

npm run test-io
npm run test-render

Parameters

You can use following parameters to start the tests:

  • --fixtures - for the choice of a specific directory with molecules
  • --headless - for start of the browser in headless mode
npm run test-render -- --fixtures=fixtures/super --headless

If you have added new structures for testing to the test/fixtures directory you have to generate svg from them for correct render-test with:

npm run generate-svg