Updated OpenMetadata UI Readme with getting started steps (#7907)

* modified README.md of openmetadata-ui

* modified readme of of openmetadata-ui
This commit is contained in:
Harsh Wasnik 2022-10-04 11:43:07 +05:30 committed by GitHub
parent 1e00d0d487
commit 4829dc1a4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,68 +1,52 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
# OpenMetadata UI
## Available Scripts
> This guide will help you run OpenMetadata UI locally in dev mode.
In the project directory, you can run:
## Pre-requisites
### `npm run start`
Before proceeding, ensure that you have installed the node and yarn with the versions given below.
Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
```
"node": ">=10.0.0",
"yarn": "^1.22.0"
```
The page will reload if you make edits.<br />
You will also see any lint errors in the console.
Install [Node](https://nodejs.org/en/download/) and [Yarn](https://classic.yarnpkg.com/lang/en/docs/install/).<br />
### `npm run test`
Install ANTLR using our recipes via
Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
```shell
sudo make install_antlr_cli
```
### `npm run build`
Using the command below, spin up the server locally from the directory `openmetadata-dist/target/openmetadata-*-SNAPSHOT`
Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.
```shell
./bin/openmetadata-server-start.sh conf/openmetadata.yaml
```
The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!
> If you don't have distributions generated or don't see `target` directory inside the `openmetadata-dist` then follow [this](https://docs.open-metadata.org/developers/contribute/build-code-and-run-tests/openmetadata-server#create-a-distribution-packaging) guide to create a distribution.
>
> Since typescript is heavily used in the OpenMetadata project, we generate the typescript types and the interface from JSON schema. We use the `QuickType` tool to generate the typescript types and interfaces. You can view the complete instructions [here](https://docs.open-metadata.org/developers/contribute/build-code-and-run-tests/generate-typescript-types-from-json-schema).
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
## Steps to Run OpenMetadata UI
### `npm run eject`
Once the node and yarn are installed in the system, you can perform the following steps to run OpenMetadata UI.
**Note: this is a one-way operation. Once you `eject`, you cant go back!**
**Step 1**: Run the given command to install the required dependencies.
If you arent satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
**Note**: Its a one-time task to install dependencies. If there are any changes in the `package.json` file, the following steps will have to be performed again.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point youre on your own.
```shell
# installing dependencies
> make yarn_install_cache
```
You dont have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldnt feel obligated to use this feature. However we understand that this tool wouldnt be useful if you couldnt customize it when you are ready for it.
**Step 2**: Start the UI locally
## Learn More
```shell
# starting the UI locally
> make yarn_start_dev_ui
```
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
### Analyzing the Bundle Size
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
### Making a Progressive Web App
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
### Advanced Configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
### Deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
### `npm run build` fails to minify
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
**Step 3**: Visit [localhost:3000](http://localhost:3000/) to access the OpenMetadata UI.