Phoenix + React + Redux Example
Integrating React and Redux with the Phoenix web framework.
Heavily inspired by @ryanswapp's elixir-react-redux-example.
Implementation of the basic TODO example from the Redux documentation.
Uses an Elixir agent for in-memory persistence of the TODO list.
Phoenix channels (websocket) are used for client <=> server communication and to support multiple users.
Demonstrates an end-to-end integration of the following tools.
- Phoenix web framework
- React
- Redux (
redux
) - React Redux (
react-redux
) - Webpack
Quickstart guide
- Clone repository with
git clone https://github.com/slashdotdash/phoenix-react-redux-example.git
- Install npm dependencies with
npm install
- Install Phoenix dependencies with
mix deps.get
- Start Phoenix endpoint with
mix phoenix.server
Now you can visit localhost:4000
from your browser.