Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #44 from Hylozoic/update-graphql-ui-and-configs
Browse files Browse the repository at this point in the history
Update graphiql-ui, agent configs and add hylo-ui build
  • Loading branch information
philipbeadle authored May 21, 2019
2 parents 2abdcd1 + ac5f2f1 commit 2d54cf6
Show file tree
Hide file tree
Showing 17 changed files with 10,888 additions and 189 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ target
dist
release

# ui builds
hylo-ui
graphiql-ui/build

# misc
.DS_Store
npm-debug.log
Expand All @@ -26,4 +30,6 @@ yarn-error.log
.idea
Cargo.lock
package-lock.json
dmg-mount
conductor-config.toml

102 changes: 55 additions & 47 deletions conductor-config-agent1.toml
Original file line number Diff line number Diff line change
@@ -1,72 +1,80 @@
# -- Hylo DNA, Agent and Instance config

[[dnas]]
id = "hylo_dna"
file = "./dna/hylo.dna.json"
hash = "Qm328wyq38924y"

[[agents]]
id = "hylo_agent"
name = "HoloTester1"
public_address = "HcScjcgKqXC5pmfvka9DmtEJwVr548yd86UPtJGGoue9ynuikuRTN7oE5zcjgbi"
keystore_file = "./agent1.keystore"

[[dnas]]
id = "chat_dna"
file = "./dna/hylo.dna.json"
hash = "Qm328wyq38924y"

[[instances]]
id = "hylo-chat"
dna = "chat_dna"
dna = "hylo_dna"
agent = "hylo_agent"
[instances.logger]
type = "simple"
file = "app_spec.log"
[instances.storage]
type = "memory"
path = "tmp-storage"

# -- WS-RPC interface to Hylo DNA
[instances.logger]
type = "simple"
file = "app_spec.log"

[instances.storage]
type = "memory"
path = "tmp-storage"

# -- Hylo DNA WS-RPC interface

[[interfaces]]
id = "websocket_interface"
[interfaces.driver]
type = "websocket"
port = 3401
[[interfaces.instances]]
id = "hylo-chat"

# # -- Hylo UI
[[interfaces.instances]]
id = "hylo-chat"

# [[ui_bundles]]
# id = "hylo-ui"
# root_dir = "./hylo-ui"
# hash = "Qm000"
[interfaces.driver]
type = "websocket"
port = 3401

# [[ui_interfaces]]
# id = "hylo-interface"
# bundle = "hylo-ui"
# port = 8000
# -- Hylo UI Bundle (location of files) and UI Interface (http)

# -- GraphiQl HTTP interface and UI
[[ui_bundles]]
id = "hylo-ui"
root_dir = "./hylo-ui"

[[interfaces]]
id = "GraphiQl-http-interface"
[interfaces.driver]
type = "http"
port = 4002
[[interfaces.instances]]
id = "hylo-chat"
[[ui_interfaces]]
bundle = "hylo-ui"
dna_interface = "websocket_interface"
id = "hylo-ui-interface"
port = 8001

# -- GraphiQl UI Bundle (location of files) and UI Interface (http)

[[ui_bundles]]
id = "main"
root_dir = "./ui/build"
hash = "Qm000"
id = "graphiql-ui"
root_dir = "./graphiql-ui/build"

[[ui_interfaces]]
id = "ui-interface"
bundle = "main"
port = 5002
dna_interface = "GraphiQl-http-interface"
bundle = "graphiql-ui"
dna_interface = "websocket_interface"
id = "graphiql-ui-interface"
port = 5001

# -- Networking

# [network]
# n3h_path = "/path/to/n3h"
# n3h_persistence_path = "/tmp"
# bootstrap_nodes = []
# n3h_log_level = "t"
[network]
n3h_persistence_path = "/tmp"
n3h_log_level = "t"
bootstrap_nodes=[]
# # For testing with a persistent n3h bootstrap node
# bootstrap_nodes = [
# "wss://holo-dna.hylo.com:38474/?a=HcSCirG9ghgy9owfdiSmaibqwD5jz9tfb5iBd4QRXrqheadsviW8bw3W3qCrm3r"
# ]

# -- Logger (settings below will disable most logging) --

# [logger]
# type="debug"
# [[logger.rules.rules]]
# exclude=true
# pattern=".*"
88 changes: 42 additions & 46 deletions conductor-config-agent2.toml
Original file line number Diff line number Diff line change
@@ -1,81 +1,77 @@
# -- Hylo DNA, Agent and Instance config

[[dnas]]
id = "hylo_dna"
file = "./dna/hylo.dna.json"
hash = "Qm328wyq38924y"

[[agents]]
id = "hylo_agent"
name = "HoloTester2"
public_address = "HcScidPSdAT43q9qirJwt5rHJYjjsvougV3jgSBwdJujszw3bBu5Mktr74Rgnea"
keystore_file = "./agent2.keystore"

[[dnas]]
id = "chat_dna"
file = "./dna/hylo.dna.json"
hash = "Qm328wyq38924y"

[[instances]]
id = "hylo-chat"
dna = "chat_dna"
dna = "hylo_dna"
agent = "hylo_agent"
[instances.logger]
type = "simple"
file = "app_spec.log"
[instances.storage]
type = "memory"
path = "tmp-storage"

# -- WS-RPC interface to Hylo DNA
[instances.logger]
type = "simple"
file = "app_spec.log"

[instances.storage]
type = "memory"
path = "tmp-storage"

# -- Hylo DNA WS-RPC interface

[[interfaces]]
id = "websocket_interface"
[interfaces.driver]
type = "websocket"
port = 3402
[[interfaces.instances]]
id = "hylo-chat"

# # -- Hylo UI
[[interfaces.instances]]
id = "hylo-chat"

[interfaces.driver]
type = "websocket"
port = 3402

# [[ui_bundles]]
# id = "hylo-ui"
# root_dir = "./hylo-ui"
# hash = "Qm000"
# -- Hylo UI Bundle (location of files) and UI Interface (http)

# [[ui_interfaces]]
# id = "hylo-interface"
# bundle = "hylo-ui"
# port = 8000
[[ui_bundles]]
id = "hylo-ui"
root_dir = "./hylo-ui"

# -- GraphiQl HTTP interface and UI
[[ui_interfaces]]
bundle = "hylo-ui"
dna_interface = "websocket_interface"
id = "hylo-ui-interface"
port = 8002

[[interfaces]]
id = "GraphiQl-http-interface"
[interfaces.driver]
type = "http"
port = 4002
[[interfaces.instances]]
id = "hylo-chat"
# -- GraphiQl UI Bundle (location of files) and UI Interface (http)

[[ui_bundles]]
id = "main"
root_dir = "./ui/build"
hash = "Qm000"
id = "graphiql-ui"
root_dir = "./graphiql-ui/build"

[[ui_interfaces]]
id = "ui-interface"
bundle = "main"
bundle = "graphiql-ui"
dna_interface = "websocket_interface"
id = "graphiql-ui-interface"
port = 5002
dna_interface = "GraphiQl-http-interface"

# -- Networking

[network]
n3h_path = "/path/to/n3h"
n3h_persistence_path = "/tmp"
n3h_log_level = "t"
bootstrap_nodes = []
# * For testing with a persistent n3h bootstrap node:
bootstrap_nodes=[]
# # For testing with a persistent n3h bootstrap node
# bootstrap_nodes = [
# "wss://holo-dna.hylo.com:38474/?a=HcSci3mbfjh4nqtj7rQArggU7Ijrv6dbqT9fwpTmUQsthb84DQDPgTvayg6iuti"
# "wss://holo-dna.hylo.com:38474/?a=HcSCirG9ghgy9owfdiSmaibqwD5jz9tfb5iBd4QRXrqheadsviW8bw3W3qCrm3r"
# ]

# -- Logger (settings below will disable most logging)
# -- Logger (settings below will disable most logging) --

# [logger]
# type="debug"
Expand Down
90 changes: 43 additions & 47 deletions conductor-config-agent3.toml
Original file line number Diff line number Diff line change
@@ -1,81 +1,77 @@
# -- Hylo DNA, Agent and Instance config

[[dnas]]
id = "hylo_dna"
file = "./dna/hylo.dna.json"
hash = "Qm328wyq38924y"

[[agents]]
id = "hylo_agent"
name = "HoloTester3"
public_address = "HcScIpNoy4Q5Xw76ggYWeMRcH5yxyitijRaREZHF9P6dau76aJygYS67G8Fcydi"
keystore_file = "./agent3.keystore"

[[dnas]]
id = "chat_dna"
file = "./dna/hylo.dna.json"
hash = "Qm328wyq38924y"

[[instances]]
id = "hylo-chat"
dna = "chat_dna"
dna = "hylo_dna"
agent = "hylo_agent"
[instances.logger]
type = "simple"
file = "app_spec.log"
[instances.storage]
type = "memory"
path = "tmp-storage"

# -- WS-RPC interface to Hylo DNA
[instances.logger]
type = "simple"
file = "app_spec.log"

[instances.storage]
type = "memory"
path = "tmp-storage"

# -- Hylo DNA WS-RPC interface

[[interfaces]]
id = "websocket_interface"
[interfaces.driver]
type = "websocket"
port = 3403
[[interfaces.instances]]
id = "hylo-chat"

# # -- Hylo UI
[[interfaces.instances]]
id = "hylo-chat"

[interfaces.driver]
type = "websocket"
port = 3403

# [[ui_bundles]]
# id = "hylo-ui"
# root_dir = "./hylo-ui"
# hash = "Qm000"
# -- Hylo UI Bundle (location of files) and UI Interface (http)

# [[ui_interfaces]]
# id = "hylo-interface"
# bundle = "hylo-ui"
# port = 8000
[[ui_bundles]]
id = "hylo-ui"
root_dir = "./hylo-ui"

# -- GraphiQl HTTP interface and UI
[[ui_interfaces]]
bundle = "hylo-ui"
dna_interface = "websocket_interface"
id = "hylo-ui-interface"
port = 8003

[[interfaces]]
id = "GraphiQl-http-interface"
[interfaces.driver]
type = "http"
port = 4002
[[interfaces.instances]]
id = "hylo-chat"
# -- GraphiQl UI Bundle (location of files) and UI Interface (http)

[[ui_bundles]]
id = "main"
root_dir = "./ui/build"
hash = "Qm000"
id = "graphiql-ui"
root_dir = "./graphiql-ui/build"

[[ui_interfaces]]
id = "ui-interface"
bundle = "main"
port = 5002
dna_interface = "GraphiQl-http-interface"
bundle = "graphiql-ui"
dna_interface = "websocket_interface"
id = "graphiql-ui-interface"
port = 5003

# -- Networking

[network]
n3h_path = "/path/to/n3h"
n3h_persistence_path = "/tmp"
n3h_log_level = "t"
bootstrap_nodes = []
# * For testing with a persistent n3h bootstrap node:
bootstrap_nodes=[]
# # For testing with a persistent n3h bootstrap node
# bootstrap_nodes = [
# "wss://holo-dna.hylo.com:38474/?a=HcSci3mbfjh4nqtj7rQArggU7Ijrv6dbqT9fwpTmUQsthb84DQDPgTvayg6iuti"
# "wss://holo-dna.hylo.com:38474/?a=HcSCirG9ghgy9owfdiSmaibqwD5jz9tfb5iBd4QRXrqheadsviW8bw3W3qCrm3r"
# ]

# -- Logger (settings below will disable most logging)
# -- Logger (settings below will disable most logging) --

# [logger]
# type="debug"
Expand Down
Loading

0 comments on commit 2d54cf6

Please sign in to comment.