Skip to content

Commit

Permalink
feat: update docs && web image (vesoft-inc#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
nianiaJR authored and NicolaCage committed Jan 8, 2020
1 parent 0880bf6 commit 65b78aa
Show file tree
Hide file tree
Showing 10 changed files with 100 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@ docker-compose down
## 应用访问
http://0.0.0.0:7001

## 更多
[用户手册](https://www.yuque.com/nebulagraph/bh6cky/kx7aug)
[测试数据](./example/follow.csv)

## 常见问题
- 建立数据库连接时: 即使是本机数据库,不要使用`127.0.0.1:3699`地址,请使用真实ip,应用运行在独立的网络环境需要真实ip寻址。
5 changes: 5 additions & 0 deletions REMADE-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@ docker-compose down
## Vist
http://0.0.0.0:7001


## More
[User Manual](https://www.yuque.com/nebulagraph/bh6cky/kx7aug)
[Sample Data](./example/follow.csv)

## FAQ
- Config Nebula Server: when use local nebula server, use the real ip host instead of `127.0.0.1:3699` due to the docker container isolated enviroment.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
networks:
- nebula-web
web:
image: vesoft/nebula-web-console:0.0.1
image: vesoft/nebula-web-console:0.0.2
environment:
USER: root
WORKING_DIR: ${WORKING_DIR}
Expand Down
9 changes: 9 additions & 0 deletions example/follow.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
100,101,95
100,102,90
101,100,95
102,101,75
102,100,75
103,102,70
104,101,50
104,105,60
105,104,83
9 changes: 9 additions & 0 deletions example/player.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
100,Tim Duncan,42
101,Tony Parker,36
102,LaMarcus Aldridge,33
103,Rudy Gay,32
104,Marco Belinelli,32
105,Danny Green,31
106,Kyle Anderson,25
107,Aron Baynes,32
108,Boris Diaw,36
6 changes: 6 additions & 0 deletions example/serve.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
100,200,1997,2016
101,201,1999,2018
102,203,2006,2015
102,204,2015,2019
103,204,2017,2019
104,200,2007,2009
9 changes: 9 additions & 0 deletions example/team.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
200,Warriors
201,Nuggets
202,Rockets
203,Trail
204,Spurs
205,Thunders
206,Jazz
207,Clippers
208,Kings
52 changes: 52 additions & 0 deletions example/tmp/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"version": "v1rc1",
"description": "web console import",
"clientSettings": {
"concurrency": 10,
"channelBufferSize": 128,
"space": "test",
"connection": {
"user": "user",
"password": "password",
"address": "192.168.3.38:3699"
}
},
"logPath": "/Users/niania/WorkSpace/nebula-web-docker/example/tmp/import.log",
"files": [
{
"path": "/Users/niania/WorkSpace/nebula-web-docker/example/player.csv",
"failDataPath": "/Users/niania/WorkSpace/nebula-web-docker/example/tmp/err/Vertex 0Fail.scv",
"batchSize": 10,
"type": "csv",
"csv": {
"withHeader": false,
"withLabel": false
},
"schema": {
"type": "vertex",
"vertex": {
"vid": {
"index": 0
},
"tags": [
{
"name": "person",
"props": [
{
"name": "name",
"type": "string",
"index": 1
},
{
"name": "age",
"type": "int",
"index": 2
}
]
}
]
}
}
}
]
}
Empty file.
5 changes: 5 additions & 0 deletions example/tmp/import.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
2020/01/08 13:21:12 [INFO] clientmgr.go:28: Create 10 Nebula Graph clients
2020/01/08 13:21:12 [INFO] reader.go:53: Start to read file(0): /Users/niania/WorkSpace/nebula-web-docker/example/player.csv, schema: < :VID,person.name:string,person.age:int >
2020/01/08 13:21:12 [INFO] reader.go:108: Total lines of file(/Users/niania/WorkSpace/nebula-web-docker/example/player.csv) is: 9, error lines: 0
2020/01/08 13:21:12 [INFO] statsmgr.go:61: Done(/Users/niania/WorkSpace/nebula-web-docker/example/player.csv): Time(0.16s), Finished(9), Failed(0), Latency AVG(5282us), Batches Req AVG(13235us), Rows AVG(56.04/s)
2020/01/08 13:21:12 [INFO] cmd.go:32: Finish import data, consume time: 0.24s

0 comments on commit 65b78aa

Please sign in to comment.