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 buildAll files will be prepared in the dist folder.
yarn startStarts a dev server on port 9000 and a fakeapi server (provides mock api data) on port 9002, in parallel. This is not recommended because the fakeapi server may not be 100% consistent with the actual backend.
yarn start:dev-proxyStarts a dev server on port 9000 and proxies all API requests to a separately deployed backend. The URL for API requests can be set with the MOIRA_API_URL env variable. Supports basic auth which can be configured using MOIRA_API_LOGIN and MOIRA_API_PASSWORD env variables.
yarn start:dockerStarts a dev server on port 9000 and a dockerized backend instance, in parallel. API requests are proxied to Docker.
yarn storybookStarts Storybook on port 9001.
yarn lintESLint check. Will run before every commit via husky.
yarn tsc --noEmitRuns 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
masterand name it like sofeature/%feautre_name%. Also, when sending a PR choosemasteras the base branch.