This project is guaranteed to work with Node.JS version 12.16.1 LTS
but should also work with newer versions.
It uses yarn and the experimental yarn workspaces for package.json splitting and convenience.
Please install the last version of yarn and run:
yarn config set workspaces-experimental true
Then run:
yarn install
For testing and developing on the project with true hot module replacement, run
yarn start
Then head to http://substra-frontend.node-1.com:3000/
substra-backend.node-1.com
is important for working with same site cookie policy.
For testing with prod config:
yarn start:prod
For building the production website, run:
yarn build:main
We use Storybook for component development and testing:
$ yarn storybook
For running the test suite:
yarn test
For displaying covering:
yarn cover
For auto-fixing linting errors:
yarn eslint