UI

UI is a static web application built with RetailUI based on React.

Install dependencies.

yarn build

Starts dev server on port 9000. You’ll have to run yarn fakeapi in separate terminal to provide mock API data. Mock API server starts on port 9002.

yarn start --env.API=local

Starts dev server with proxy to your API service. Make sure you setup local Moira API service and add it URL to webpack.config.js in devServer.proxy block.

yarn storybook

Starts Storybook on port 9001.

yarn lint

ESLint check. Recommended to run before commit.

yarn flow

Starts Flow server for checking types. You can also run yarn flow.status for status, yarn flow.check for errors report, yarn flow.coverage.html to export html report with cute UI.