-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow Feast UI to be spun up with CLI command: feast ui (#2667)
Signed-off-by: Danny Chiao <[email protected]>
- Loading branch information
Showing
29 changed files
with
38,843 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,6 +166,11 @@ jobs: | |
os: [ ubuntu-latest, macos-10.15 ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '17.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
|
@@ -183,6 +188,7 @@ jobs: | |
make install-protoc-dependencies | ||
make install-go-proto-dependencies | ||
make install-go-ci-dependencies | ||
make build-ui | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
|
@@ -202,12 +208,18 @@ jobs: | |
with: | ||
python-version: "3.10" | ||
architecture: x64 | ||
- name: Install dependencies | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '17.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Build and install dependencies | ||
run: | | ||
pip install -U pip setuptools wheel twine | ||
make install-protoc-dependencies | ||
make install-go-proto-dependencies | ||
make install-go-ci-dependencies | ||
make build-ui | ||
- name: Build | ||
run: | | ||
python3 setup.py sdist bdist_wheel | ||
|
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
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 |
---|---|---|
|
@@ -115,4 +115,4 @@ dmypy.json | |
.pyre/ | ||
|
||
.vscode/* | ||
playground | ||
playground |
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
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,33 @@ | ||
# Example Feast UI App | ||
|
||
This is an example React App that imports the Feast UI module and relies on a "/projects-list" endpoint to get projects. | ||
|
||
See the module import in `src/index.js`. The main change this implements on top of a vanilla create-react-app is adding: | ||
|
||
```tsx | ||
import ReactDOM from "react-dom"; | ||
import FeastUI from "@feast-dev/feast-ui"; | ||
import "@feast-dev/feast-ui/dist/feast-ui.css"; | ||
|
||
ReactDOM.render( | ||
<React.StrictMode> | ||
<FeastUI | ||
feastUIConfigs={{ | ||
projectListPromise: fetch("http://0.0.0.0:8888/projects-list", { | ||
headers: { | ||
"Content-Type": "application/json", | ||
}, | ||
}).then((res) => { | ||
return res.json(); | ||
}) | ||
}} | ||
/> | ||
</React.StrictMode>, | ||
document.getElementById("root") | ||
); | ||
``` | ||
|
||
It is used by the `feast ui` command to scaffold a local UI server. The feast python package bundles in resources produced from `npm run build --omit=dev | ||
|
||
|
||
**Note**: yarn start will not work on this because of the above dependency. |
File renamed without changes.
Oops, something went wrong.