diff --git a/examples/README.md b/examples/README.md index f1dad1ebc..4d3f6f05c 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,3 +1,6 @@ +# For First-Time Developers +See the [React Chat App](/examples/react-chat-app) which has step-by-step instructions to get it going. + # Community Examples Coming soon! diff --git a/examples/react-chat-app/.hz/config.toml b/examples/react-chat-app/.hz/config.toml new file mode 100644 index 000000000..e18b27915 --- /dev/null +++ b/examples/react-chat-app/.hz/config.toml @@ -0,0 +1,6 @@ +project_name = "react_chat_app" + +# You probably don't want these options on a public server... +# But it makes the example app easier to run +auto_create_collection = true +auto_create_index = true diff --git a/examples/react-chat-app/README.md b/examples/react-chat-app/README.md index 763afb88b..cab15b7bf 100644 --- a/examples/react-chat-app/README.md +++ b/examples/react-chat-app/README.md @@ -2,6 +2,11 @@
![](https://i.imgur.com/XFostB8.gif)
+## Running this example +1. Install Horizon: "npm install -g horizon" +2. Install RethinkDB: https://rethinkdb.com/docs/install/ +3. Run "horizon serve --dev" in this directory +4. Open http://127.0.0.1:8181 ## Ideas for future diff --git a/examples/react-chat-app/dist/index.html b/examples/react-chat-app/dist/index.html index dc46491fc..f2200a070 100644 --- a/examples/react-chat-app/dist/index.html +++ b/examples/react-chat-app/dist/index.html @@ -12,7 +12,6 @@ -