An experiment built to play with various concepts including:
- the Phoenix Framework
- Phoenix Channels and GenEvent handlers
- React and Flux
- 6to5
- Immutable
- Browserify
To start the Phoenix application:
- Make sure you have Redis installed and running.
- Install dependencies with
mix deps.get
- Start Phoenix endpoint with
mix phoenix.server
To start the client:
cd web/js
- Install dependencies with
npm install
- Compile and watch the client code with
npm start
Now you can visit localhost:4000
from your browser.
... or watch it here.
First, build the minified version of the client:
cd web/js/
- Build the bundle with
npm run build
Then create the release and start the application:
export MIX_ENV=prod
mix release
rel/ex_react_ws/bin/ex_react_ws start
Now you can visit localhost:4000
from your browser.