yaooqinn commented on code in PR #4775: URL: https://github.com/apache/kyuubi/pull/4775#discussion_r1184581470
########## docs/contributing/code/web_ui.md: ########## @@ -0,0 +1,84 @@ +<!-- +- Licensed to the Apache Software Foundation (ASF) under one or more +- contributor license agreements. See the NOTICE file distributed with +- this work for additional information regarding copyright ownership. +- The ASF licenses this file to You under the Apache License, Version 2.0 +- (the "License"); you may not use this file except in compliance with +- the License. You may obtain a copy of the License at +- +- http://www.apache.org/licenses/LICENSE-2.0 +- +- Unless required by applicable law or agreed to in writing, software +- distributed under the License is distributed on an "AS IS" BASIS, +- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +- See the License for the specific language governing permissions and +- limitations under the License. +--> + +# Kyuubi Web UI + +Requirement: + +1. Fork Kyuubi source code[version >= 1.8.0] +2. Install [nodejs](https://nodejs.org/en/)[Recommend 18.x.x] + +## Install Dependencies + +```shell +cd ${KYUUBI_SOURCE_CODE}/kyuubi-server/web-ui +npm install +``` + +## Develop + +Notice: + +Before you start the Web UI project, please make sure the Kyuubi server has been started. + +Kyuubi Web UI will proxy the requests to Kyuubi server, with the default endpoint path to`http://localhost:10099`. Modify `VITE_APP_DEV_WEB_URL` in `.env.development` for customizing targeted endpoint path. + +#### Why proxy to http://localhost:10099 + +Current Kyuubi server binds on `http://0.0.0.0:10099` in case you are running Kyuubi server in macOS or Windows(If in Linux, you should config Kyuubi server `kyuubi.frontend.rest.bind.host=0.0.0.0`, or change `VITE_APP_DEV_WEB_URL` in `.env.development`). + +```shell +npm run dev +``` + +You can access Kyuubi Web UI at `http://localhost:9090/ui` + +### Build Project + +```shell +npm run build +``` + +### Code Style + +Usually after you modify the code, you need to perform code formatting operations to ensure that the code in the project is the same style. Review Comment: `Usually`? Is the style so easy to break? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
