Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make react-chat-app easy to run for new developers #406

Open
wants to merge 5 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -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!
Expand Down
6 changes: 6 additions & 0 deletions examples/react-chat-app/.hz/config.toml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions examples/react-chat-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

<center>![](https://i.imgur.com/XFostB8.gif)</center>

## 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

Expand Down
1 change: 0 additions & 1 deletion examples/react-chat-app/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react-with-addons.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react-dom.js"></script>
<script src="https://fb.me/JSXTransformer-0.13.3.js"></script>
<script src="://localhost:8181/horizon/horizon.js"></script>
<script src="/horizon/horizon.js"></script>
<script type="text/jsx" src="app.jsx"></script>

Expand Down