This UI is a React app built with Vite and served by Caddy.
It helps users to:
- Produce a bcgovpubcode.yml file from scratch
- Edit exiting bcgovpubcode.yml files by web link
The user fills out a form, which generates a bcgovpubcode.yml file, which can be downloaded or copied/pasted to add their GitHub repository. It is validated using the React json schema form library.
Each Pull Request workflow creates a sandboxed environment deployed in OpenShift. A temporary URL is provided as part of the PR's checks. Environments are removed when their PRs are closed.
Prerequisites:
- Node.js 18
Steps:
- Clone the repository
OR
git clone https://github.com/bcgov/pubcode.git
git clone git@github.com:bcgov/pubcode.git
- Install dependencies
npm ci
- Run the app
npm run dev