forked from kubeflow/model-registry
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from kubeflow/main
[pull] main from kubeflow:main
- Loading branch information
Showing
14 changed files
with
1,164 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[dev setup documentation]: docs/dev-setup.md#requirements | ||
|
||
# Contributing | ||
|
||
Contributing encompasses repository specific requirements. | ||
|
||
## Requirements | ||
|
||
To review the requirements, please refer to the [dev setup documentation]. | ||
|
||
## Writing code | ||
|
||
### Running locally | ||
|
||
The recommended flow for development is to have two sessions, one for the "frontend": | ||
|
||
```bash | ||
npm run start:dev | ||
``` | ||
|
||
And one for the "backend": | ||
|
||
```bash | ||
cd ../bff | ||
docker compose -f docker-compose.yaml up | ||
``` | ||
|
||
Once you have both services ready, you can open the dashboard locally at: `http://localhost:4010`. The dev server will reload automatically when you make changes. | ||
|
||
|
||
## Debugging and Testing | ||
|
||
[TBD] | ||
|
||
## Environment variables | ||
|
||
[TBD] | ||
|
||
### Building your image | ||
|
||
[TBD] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,21 @@ | ||
[contributing guidelines]: CONTRIBUTING.md | ||
[Dev setup & Requirements]: docs/dev-setup.md | ||
[Model Registry UI documentation]: docs/README.md | ||
[issue]: https://github.com/kubeflow/model-registry/issues/new/choose | ||
|
||
# Kubeflow Model Registry UI | ||
|
||
The Kubeflow Model Registry UI is a standalone web app for Kubeflow Model Registry. | ||
|
||
## Pre-requisites: | ||
|
||
TBD | ||
|
||
## Development | ||
|
||
```sh | ||
# Install development/build dependencies | ||
npm install | ||
|
||
# Start the development server | ||
npm run start:dev | ||
|
||
# Run a production build (outputs to "dist" dir) | ||
npm run build | ||
|
||
# Run the test suite | ||
npm run test | ||
## Contributing: | ||
|
||
# Run the test suite with coverage | ||
npm run test:coverage | ||
Individual bug fixes are welcome, it is recommended that you create a bug [issue] at the same time to describe the fix you're applying. If you are unsure how best to solve it, start with the issue and note your desire to contribute. | ||
|
||
# Run the linter | ||
npm run lint | ||
We do have some [contributing guidelines] you can follow. | ||
|
||
# Run the code formatter | ||
npm run format | ||
## Documentation | ||
|
||
# Launch a tool to inspect the bundle size | ||
npm run bundle-profile:analyze | ||
Read more about the Model Registry UI in one of our documentation links. | ||
|
||
# Start the express server (run a production build first) | ||
npm run start | ||
``` | ||
* [Dev setup & Requirements] | ||
* [Model Registry UI documentation] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const path = require('path'); | ||
const relativeDir = path.resolve(__dirname, '..'); | ||
module.exports = { | ||
stylePaths: [ | ||
path.resolve(relativeDir, 'src'), | ||
path.resolve(relativeDir, 'node_modules/patternfly'), | ||
path.resolve(relativeDir, 'node_modules/@patternfly/patternfly'), | ||
path.resolve(relativeDir, 'node_modules/@patternfly/react-styles/css'), | ||
path.resolve(relativeDir, 'node_modules/@patternfly/react-core/dist/styles/base.css'), | ||
path.resolve(relativeDir, 'node_modules/@patternfly/react-core/dist/esm/@patternfly/patternfly'), | ||
path.resolve(relativeDir, 'node_modules/@patternfly/react-core/node_modules/@patternfly/react-styles/css'), | ||
path.resolve(relativeDir, 'node_modules/@patternfly/react-table/node_modules/@patternfly/react-styles/css'), | ||
path.resolve(relativeDir, 'node_modules/@patternfly/react-inline-edit-extension/node_modules/@patternfly/react-styles/css') | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Dev setup & Requirements]: dev-setup.md | ||
[Architecture]: architecture.md | ||
|
||
|
||
# Model Registry UI Documentation | ||
|
||
This is the general documentation of the Model Registry UI. | ||
|
||
## Developer Readmes | ||
|
||
* [Dev setup & Requirements] | ||
* [Architecture] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Model Registry UI Architecture | ||
|
||
[TBD] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Dev Setup | ||
|
||
## Requirements | ||
|
||
This project requires the following tools to be installed on your system: | ||
|
||
- [NodeJS and NPM](https://nodejs.org/) | ||
- Node recommended version -> `18.16.0` | ||
- NPM recommended version -> `9.6.7` | ||
|
||
### Additional tooling | ||
|
||
[TBD] | ||
|
||
## Development | ||
|
||
1. Clone the repository | ||
|
||
``` bash | ||
git clone https://github.com/kubeflow/model-registry | ||
``` | ||
|
||
2. Within the repo context, install project dependencies | ||
|
||
```bash | ||
cd model-registry/clients/ui/frontend && npm install | ||
``` | ||
|
||
### Build project | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
### Serve development content | ||
|
||
This is the default context for running a local UI. Make sure you build the project using the instructions above prior to running the command below. | ||
|
||
```bash | ||
npm run start | ||
``` | ||
|
||
For in-depth local run guidance review the [contribution guidelines](../CONTRIBUTING.md). | ||
|
||
### Testing | ||
|
||
Run the tests. | ||
|
||
```bash | ||
npm run test | ||
``` | ||
|
||
For in-depth testing guidance review the [testing guidelines](./testing.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Model Registry UI Testing | ||
|
||
[TBD] |
Oops, something went wrong.