Web user interface for Quipucords, based on Patternfly
Before developing, the basic requirements:
- Your system needs to be running NodeJS version 18+ and NPM
- Docker
- Alternatively, you can try Podman.
- And Yarn for dependency and script management.
For in-depth tooling install guidance see the contribution guidelines
-
Clone the repository
$ git clone https://github.com/quipucords/quipucords-ui.git
-
Within the repo context, install project dependencies
$ cd quipucords-ui && yarn
This is the base context for running a local UI against a mock API.
- Create a local dotenv file called
.env.local
and add the following contentsREACT_APP_DEBUG_MIDDLEWARE=true
- Make sure Docker/Podman is running
- In a terminal instance that uses the repo context... Run
$ yarn start
- Start developing against files in
./src
. Linting feedback will be automatically enabled through the terminal output
For in-depth local run guidance review the contribution guidelines
Run and update unit tests while developing instead of after-the-fact. In a new terminal instance
- In a new terminal instance that uses the repo context... Run
$ yarn test:dev
- Test files can be accessed, and edited, under
__test__
directories parallel to the files you're editing. Test failures for recently edited files will be available in the terminal output along with basic testing framework use directions.
For in-depth testing guidance review the contribution guidelines
Contributing encompasses repository specific requirements and the global contribution guidelines.