An example of using ElixirScript with a Phoenix 1.3 application.
The ElixirScript code is in the lib/todo_frontend directory.
The frontend uses the ElixirScriptReact library to create the view.
To start your Phoenix app:
- Install dependencies with
mix deps.get - Install Node.js dependencies with
(cd assets && npm install && cd ..) - Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000 from your browser.