Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,11 @@ build-helm-docs:
build-ui:
cd $(ROOT_DIR)/sdk/python/feast/ui && yarn upgrade @feast-dev/feast-ui --latest && yarn install && npm run build --omit=dev

build-ui-local:
cd $(ROOT_DIR)/ui && yarn install && npm run build --omit=dev
rm -rf $(ROOT_DIR)/sdk/python/feast/ui/build
cp -r $(ROOT_DIR)/ui/build $(ROOT_DIR)/sdk/python/feast/ui/

format-ui:
cd $(ROOT_DIR)/ui && NPM_TOKEN= yarn install && NPM_TOKEN= yarn format

Expand Down
11 changes: 10 additions & 1 deletion docs/project/development-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,20 @@ Note that this means if you are midway through working through a PR and rebase,
- activate the venv: `source venv/bin/activate`
- Install dependencies `make install-python-dependencies-dev`

### building the UI
### Building the UI
To build the UI from the latest released NPM package (hosted under @feast-dev/feast-ui):

```sh
make build-ui
```

If you want to test backend and frontend together using 'feast ui' command and with a locally built Feast UI package, you can build using:

```sh
make build-ui-local
```
Use this when you are making changes to the React UI code and want to see them live via the backend.

### Recompiling python lock files
Recompile python lock files. This only needs to be run when you make changes to requirements or simply want to update python lock files to reflect latest versions.

Expand Down
9 changes: 9 additions & 0 deletions sdk/python/feast/ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ The `feast ui` command will generate the necessary `projects-list.json` file and

## Dev
To test with a locally built Feast UI package, do:

```bash
make build-ui-local
feast ui
```

OR

You can also do:
1. `yarn link` in ui/
2. `yarn install` in ui/
3. `yarn link` in ui/node_modules/react
Expand Down