mirror of
https://github.com/wahyd4/kt-connect.git
synced 2026-08-11 14:26:30 +10:00
38 lines
654 B
Markdown
38 lines
654 B
Markdown
Dashboard Developer Doc
|
|
-----
|
|
|
|
## How to develop
|
|
|
|
### API Server
|
|
|
|
* Require
|
|
|
|
Please make sure the `~/.kubec/config` already present.
|
|
|
|
* Start Api Server
|
|
|
|
```
|
|
$ go run cmd/server/main.go
|
|
2020/02/23 09:55:30 Use OutCluster Config Mode
|
|
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
|
|
- using env: export GIN_MODE=release
|
|
- using code: gin.SetMode(gin.ReleaseMode)
|
|
...
|
|
[GIN-debug] Listening and serving HTTP on :8000
|
|
```
|
|
|
|
This will create a web server on `:8080`
|
|
|
|
### Web UI
|
|
|
|
Install denpendencies
|
|
|
|
> require: node v9.11.1+
|
|
|
|
```
|
|
npm install -g cnpm
|
|
cnpm install
|
|
npm start
|
|
```
|
|
|
|
Open Browser `http://localhost:3000/` |