This repo is for Moira's Web UI built on React/TypeScript. If you're new here, please check out our main README.
You need Node.js and Yarn installed. After cloning the repo, make sure you have all dependencies installed by running yarn install
.
yarn build
All files will be prepared in the dist folder.
yarn start
Starts a dev server on port 9000 and a fakeapi server (provides mock api data) on port 9002, in parallel.
yarn withBackend
Starts a dev server on port 9000 and a dockerized backend instance, in parallel.
yarn start-with-local-api
Starts a dev server as a proxy to your API service. Make sure you have a local Moira API service set up and add its URL to webpack.dev.js
in devServer.proxy
block.
yarn storybook
Starts Storybook on port 9001.
yarn lint
ESLint check. Will run before every commit via husky.
yarn tsc --noEmit
Runs the TypeScript compiler for type-safety checking. Will run before every commit via husky.
First of all, thank you for your help!
For contributors, we have two major rules:
- Please, create your issues in the main repo. Even if you think that your issue concerns only the web interface, often it doesn't.
- If you want to send a PR, checkout a branch for you feature from
master
and name it like sofeature/%feautre_name%
. Also, when sending a PR choosemaster
as the base branch.