From df986ce80bff3657f6ad4da5105b37c82652b221 Mon Sep 17 00:00:00 2001 From: Seth Nickell Date: Tue, 17 May 2016 16:13:49 -0700 Subject: [PATCH 1/5] Include .hz/config.toml for the react-chat-app Helps new developers get an app up and running. --- examples/README.md | 3 +++ examples/react-chat-app/.hz/config.toml | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 examples/react-chat-app/.hz/config.toml 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..07d54a3e2 --- /dev/null +++ b/examples/react-chat-app/.hz/config.toml @@ -0,0 +1,8 @@ +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 + +token_secret = "nuQFOzmjgB7BGcgjcLNiGN7h4S3PjSNaFA/7KlKOuyogFC6kDo+gal/SZ76kWPfXjTEvP/XaK2ifQyqprMGxQA==" From 46984e4c484f01b279c0b7df2e1d55d6167a95bf Mon Sep 17 00:00:00 2001 From: Seth Nickell Date: Tue, 17 May 2016 16:20:28 -0700 Subject: [PATCH 2/5] Remove redundant include of horizon.js --- examples/react-chat-app/dist/index.html | 1 - 1 file changed, 1 deletion(-) 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 @@ - From 15c6e4efc597062cb152158312c348aa8d3c6ec4 Mon Sep 17 00:00:00 2001 From: Seth Nickell Date: Tue, 17 May 2016 16:22:48 -0700 Subject: [PATCH 3/5] Add instructions for running react-chat-app example --- examples/react-chat-app/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/react-chat-app/README.md b/examples/react-chat-app/README.md index 763afb88b..e63d72248 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 From 64a42dfc22f410192357720cc78c68d501464383 Mon Sep 17 00:00:00 2001 From: Seth Nickell Date: Tue, 17 May 2016 16:24:01 -0700 Subject: [PATCH 4/5] Correct md for react-chap-app/README.md --- examples/react-chat-app/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/react-chat-app/README.md b/examples/react-chat-app/README.md index e63d72248..cab15b7bf 100644 --- a/examples/react-chat-app/README.md +++ b/examples/react-chat-app/README.md @@ -3,10 +3,10 @@
![](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 +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 From ac33e009ab9c4874055eda65c5594ba8f69680c9 Mon Sep 17 00:00:00 2001 From: Seth Nickell Date: Thu, 19 May 2016 21:28:20 -0700 Subject: [PATCH 5/5] Don't include token_secret in config.toml --- examples/react-chat-app/.hz/config.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/react-chat-app/.hz/config.toml b/examples/react-chat-app/.hz/config.toml index 07d54a3e2..e18b27915 100644 --- a/examples/react-chat-app/.hz/config.toml +++ b/examples/react-chat-app/.hz/config.toml @@ -4,5 +4,3 @@ project_name = "react_chat_app" # But it makes the example app easier to run auto_create_collection = true auto_create_index = true - -token_secret = "nuQFOzmjgB7BGcgjcLNiGN7h4S3PjSNaFA/7KlKOuyogFC6kDo+gal/SZ76kWPfXjTEvP/XaK2ifQyqprMGxQA=="