This is a very basic example of how to add RethinkDB to Phoenix. Be sure to checkout the commits for the exact steps to take.
- Install dependencies with
mix deps.get
- Start RethinkDB in another terminal
- Start Phoenix endpoint with
mix phoenix.server
- Visit
localhost:4000/init-table
to create a posts example table
Now you can visit localhost:4000
from your browser.
The response will return a JSON response with two example posts.