Update README.md
Browse files
README.md
CHANGED
@@ -13,4 +13,89 @@ pipeline_tag: text-classification
|
|
13 |
library_name: bertopic
|
14 |
tags:
|
15 |
- biology
|
16 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
library_name: bertopic
|
14 |
tags:
|
15 |
- biology
|
16 |
+
---
|
17 |
+
# GRGcloud Dashboard
|
18 |
+
|
19 |
+
[](https://www.travis-ci.org/yunionio/dashboard)
|
20 |
+
|
21 |
+
[English](./README.md) | [简体中文](./README-CN.md)
|
22 |
+
|
23 |
+
GRGcloud Dashboard is the web-based UI for [GRGcloud](https://github.com/yunionio/cloudpods).
|
24 |
+
|
25 |
+
## Developer Guide
|
26 |
+
|
27 |
+
### Preparation
|
28 |
+
|
29 |
+
Make sure the following software is installed and added to the $PATH variable:
|
30 |
+
|
31 |
+
- Node.js 10.16+ ([installation with nvm](https://github.com/creationix/nvm#usage))
|
32 |
+
- Yarn 1.19.1+ ([documentation](https://classic.yarnpkg.com/en/docs/install))
|
33 |
+
|
34 |
+
or
|
35 |
+
|
36 |
+
Install yarn with npm:
|
37 |
+
|
38 |
+
```sh
|
39 |
+
npm install -g yarn
|
40 |
+
```
|
41 |
+
|
42 |
+
Fork the following repository, then clone dashboard main repository and install dependencies
|
43 |
+
|
44 |
+
- [dashboard](https://github.com/yunionio/dashboard)
|
45 |
+
|
46 |
+
```sh
|
47 |
+
$ git clone https://github.com/<owner>/dashboard.git
|
48 |
+
$ cd dashboard
|
49 |
+
# Here, depending on your environment, checkout corresponding branch, otherwise you might have incompatibilities
|
50 |
+
$ git checkout release/3.8
|
51 |
+
$ yarn
|
52 |
+
```
|
53 |
+
|
54 |
+
Note: If you are in Mainland China, execute the following command before running the command above for faster installation.
|
55 |
+
|
56 |
+
```sh
|
57 |
+
yarn config set registry https://registry.npm.taobao.org
|
58 |
+
```
|
59 |
+
|
60 |
+
### Start Dashboard for development
|
61 |
+
|
62 |
+
If you want to configure the proxy, please create dev.server.config.js in the project root directory and export configuration
|
63 |
+
|
64 |
+
Please change the configuration according to your needs, the following is just an example
|
65 |
+
|
66 |
+
```javascript
|
67 |
+
// dev.server.config.js
|
68 |
+
module.exports = {
|
69 |
+
open: process.platform === 'darwin',
|
70 |
+
port: 8080,
|
71 |
+
proxy: {
|
72 |
+
'/api': {
|
73 |
+
// Be sure to set it to the address of the environment, which is HTTPS
|
74 |
+
target: 'https://192.168.1.10',
|
75 |
+
ws: true,
|
76 |
+
changeOrigin: true,
|
77 |
+
secure: false,
|
78 |
+
},
|
79 |
+
},
|
80 |
+
}
|
81 |
+
```
|
82 |
+
|
83 |
+
[More configuration](https://webpack.js.org/configuration/dev-server/)
|
84 |
+
|
85 |
+
```sh
|
86 |
+
yarn serve
|
87 |
+
```
|
88 |
+
|
89 |
+
Now, you can open http://localhost:8080 to view
|
90 |
+
|
91 |
+
### Build Dashboard for production
|
92 |
+
|
93 |
+
```sh
|
94 |
+
yarn build
|
95 |
+
```
|
96 |
+
|
97 |
+
### Make docker image
|
98 |
+
|
99 |
+
```bash
|
100 |
+
REGISTRY=registry.cn-beijing.aliyuncs.com/yunionio TAG=your-tag ./scripts/docker-push.sh
|
101 |
+
```
|