Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

pd-web (WIP)

PD Web by PingCAP FE.

The Rules

Please ensure that each commit is followed the setting of:

  • .editorconfig
  • .prettierrc

Sass rules

Each .scss file is associated with a component, like Container.scss.

All components' top class name should keep with PD-, for example, PD-Container is the top class name of Container component.

Component rules

All main components in the components dir should use the form of index.tsx, for example:

Container/
  index.tsx
  Routes.tsx
  Tabs.tsx
Nav/
  index.tsx

Test rules

All test files should be placed in src/__tests__ dir.

How to develop

For development, you must provide a pd client as environment variable. For example:

REACT_APP_PD_CLIENT_URL=http://localhost:32845

Let's start:

git clone https://github.com/pingcap-fe/pd-web.git && cd pd-web

# We recommend using yarn
yarn
REACT_APP_PD_CLIENT_URL=http://localhost:32845 BROWSER=none yarn start

Run tests

Make sure the necessary unit tests passed.

yarn test

License

PD-Web is under the Apache 2.0 license.

About

PD Web by PingCAP FE.

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.