README.md 4.3 KB
Newer Older
1
<p align="center">
2
    <a href="https://github.com/PaddlePaddle/VisualDL"><img align="center" style="width:480px" width="480" src="https://raw.githubusercontent.com/PaddlePaddle/VisualDL/develop/frontend/packages/core/public/images/logo-visualdl.svg?sanitize=true" alt="VisualDL" /></a>
3 4 5 6
</p>
<br />

<p align="center">
7
    <a href="https://travis-ci.org/PaddlePaddle/VisualDL"><img src="https://img.shields.io/travis/PaddlePaddle/VisualDL/develop?style=flat-square" alt="Build Status" /></a>
8 9
    <a href="https://github.com/PaddlePaddle/VisualDL"><img src="https://img.shields.io/github/languages/top/PaddlePaddle/VisualDL?style=flat-square" alt="GitHub top language" /></a>
    <a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square" alt="code style: prettier" /></a>
10
    <a href="https://lerna.js.org/"><img src="https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg?style=flat-square" alt="lerna"></a>
11 12 13 14 15 16 17 18
    <a href="https://github.com/PaddlePaddle/VisualDL/blob/develop/LICENSE"><img src="https://img.shields.io/github/license/PaddlePaddle/VisualDL?style=flat-square" alt="License" /></a>
    <a href="https://github.com/PaddlePaddle/VisualDL/graphs/contributors"><img src="https://img.shields.io/github/contributors/PaddlePaddle/VisualDL?style=flat-square" alt="GitHub Contributors" /></a>
    <a href="https://github.com/PaddlePaddle/VisualDL/stargazers"><img src="https://img.shields.io/github/stars/PaddlePaddle/VisualDL?style=social" alt="GitHub stars" /></a>
</p>

# VisualDL FrontEnd

English | [简体中文](https://github.com/PaddlePaddle/VisualDL/blob/develop/frontend/README_cn.md)
19

20
## Usage
21

22
> nodejs ≥ 10 and npm ≥ 6 are required.
23

24
```bash
25
npm install -g @visualdl/cli
26
# or
27
yarn global add @visualdl/cli
28 29
```

30
Then you can start VisualDL server by
31 32 33 34 35

```bash
visualdl start --backend="http://127.0.0.1:8040"
```

36
To stop VisualDL server, just type
37 38 39 40 41 42 43 44 45 46 47 48 49

```bash
visualdl stop
```

For more usage infomation, please type

```bash
visualdl -h
```

## Development

50
```bash
51
npm install && npm run bootstrap
52 53 54 55
# or
yarn
```

56
> Notice: if you have yarn installed globally, you don't need to bootstrap because yarn workspace will do it for you.
57

58
## Packages
59

60 61
[core](https://github.com/PaddlePaddle/VisualDL/blob/develop/frontend/packages/core/README.md)
[server](https://github.com/PaddlePaddle/VisualDL/blob/develop/frontend/packages/server/README.md)
62
[netron](https://github.com/PaddlePaddle/VisualDL/blob/develop/frontend/packages/netron/README.md)
63 64 65
[cli](https://github.com/PaddlePaddle/VisualDL/blob/develop/frontend/packages/cli/README.md)
[wasm](https://github.com/PaddlePaddle/VisualDL/blob/develop/frontend/packages/wasm/README.md)
[mock](https://github.com/PaddlePaddle/VisualDL/blob/develop/frontend/packages/mock/README.md)
66

67
## Build & Deploy
68

69
> We only support building on Linux/MacOS now.
70

71
Run:
72

73 74 75
```bash
yarn build
```
76

77
You will get `server.tar.gz` and `serverless.tar.gz` in `output` directory.
78

79
### Server deployment
80

81
> nodejs ≥ 10 and npm ≥ 6 are required.
82

83 84
Extract `server.tar.gz` to wherever you want.
`cd` into the directory and run:
85 86

```bash
87
npm install --production
88 89
```

90
Then use:
91 92

```bash
93 94
npm start
```
95

96
to start a production server.
97

98 99 100 101
### Serverless deployment

Extract `serverless.tar.gz` to your `webroot`.
Just start your web server and enjoy.
102 103 104 105 106

### Browser Compatibility

VisualDL supports the latest version of [Google Chrome](https://www.google.com/chrome/) and [Mozilla Firefox](https://www.mozilla.org/). [Microsoft Edge](https://www.microsoft.com/edge) and [Apple Safari](https://www.apple.com/safari/) may work too but are not tested.

107 108 109 110 111 112
## Learn More

This project is based on following projects:

- [React](https://reactjs.org/)
- [ECharts](https://echarts.apache.org/)
113
- [wasm-pack](https://rustwasm.github.io/wasm-pack/)
P
Peter Pan 已提交
114
- [Netron](https://github.com/lutzroeder/netron)
115

116 117 118
## Author
<table><tr><td align="center"><a href="https://github.com/PeterPanZH"><img src="https://avatars0.githubusercontent.com/u/3366499?s=460&v=4" width="120px;" alt="PeterPanZH"/><br /><sub><b>PeterPanZH</b></sub></a></td><td align="center"><a href="https://github.com/Niandalu"><img src="https://avatars1.githubusercontent.com/u/6406875?s=460&v=4" width="120px;" alt="Niandalu"/><br /><sub><b>Niandalu</b></sub></a></td></tr></table>

119 120
## License

121
[Apache-2.0](https://github.com/PaddlePaddle/VisualDL/blob/develop/LICENSE)