Product Delivery's Web Client to Microservices
Перейти к файлу
Geoff Brown 4867e26273
Merge pull request #365 from mozilla/renovate/prettier-2.x
Update dependency prettier to v2.7.0
2022-06-14 12:49:15 -06:00
flow-typed Fix flow issues following update to 0.68.0 2018-03-16 09:58:01 +01:00
public no need to load auth0, fixes #169 (#175) 2018-02-02 11:09:49 -05:00
scripts prettier all code and default prettier rules, fixes #182,#209 (#222) 2018-02-08 13:04:40 -05:00
src update redux-saga to 1.1.3 2021-10-20 15:08:06 -06:00
.flowconfig Don't flow check the node_modules folder 2018-09-04 10:27:43 +02:00
.gitignore Don't track version.json changes, move it to the src/ folder 2017-09-08 14:26:19 +02:00
.travis.yml A life without eslint (#217) 2018-02-07 09:39:09 -05:00
CODE_OF_CONDUCT.md Add Mozilla Code of Conduct file 2019-03-29 23:38:29 -07:00
LICENSE Create LICENSE 2017-08-01 10:28:57 -07:00
README.md Use the pollbot server from the url 2018-02-23 11:39:18 +01:00
codecov.yml Disable codecov comments 2018-01-10 07:53:08 +01:00
config-overrides.js Introduce Photon Ant 2017-10-23 10:34:50 -06:00
package.json Update dependency prettier to v2.7.0 2022-06-14 15:08:08 +00:00
renovate.json Add renovate.json (#174) 2018-02-01 13:53:28 -05:00
yarn.lock Update dependency prettier to v2.7.0 2022-06-14 15:08:08 +00:00

README.md

Delivery Dashboard

Renovate enabled

Product Delivery's Web Client to Microservices.

The Product Delivery team is implementing various Microservices such as PollBot, and this dashboard aims at displaying information from those in a centralized place.

Table of Contents

Cloning and getting into the Project Dir

To clone this repository simply type

$ git clone https://github.com/mozilla/delivery-dashboard && cd delivery-dashboard
$ cd delivery-dashboard

Setting up the development environment

You would need to install yarn. You can use:

$ npm install -g yarn

You can then use yarn to install the project dependencies:

$ yarn install

Starting the dev server

To start the dev server type the following command:

$ yarn start

Building

To build this app, type the command below:

$ yarn build

Deploying to gh-pages

$ yarn deploy

The app should be deployed to https://[your-github-username].github.io/delivery-dashboard/

Launching testsuite

To run the testsuite, simply type:

$ yarn test

Linting

We use Prettier to format all .js and .css files according to the default configuration of Prettier.

When contributing, it is your responsibility to make sure all files you touch conform to the Prettier standard, but there are useful tools to make this easier.

Linting is checked in continuous integration for every pull request and build of master. If any file has any deviation from the Prettier output it will "break the build" and you're expected to fix it.

To make it easier to see what the potential linting problems are run:

$ yarn lint

It will report any errors and explain which files need attention. To make this more convenient you can simply run:

$ yarn lint-fix

which will directly fix the files that didn't pass.

Using a different Pollbot server

When accessing https://mozilla.github.io/delivery-dashboard/, data is fetched from https://pollbot.services.mozilla.com/v1, which is the production server. If you want to use a different server (for example the stage or dev versions), add a server query parameter like so:

- dev: https://mozilla.github.io/delivery-dashboard/?server=https://pollbot.dev.mozaws.net/v1
- stage: https://mozilla.github.io/delivery-dashboard/?server=https://pollbot.stage.mozaws.net/v1