Skip to content

Proof of concept app for using Phoenix channels in Elm with the elm-phoenix package.

Notifications You must be signed in to change notification settings

svard/hello_phoenix

Repository files navigation

HelloPhoenix

Proof of concept app for using Phoenix channels in Elm with the elm-phoenix package.

Based on the Phoenix framework guide app but with the client written in Elm.

To start your Phoenix app:

  • An existing installation of Elm 0.16 is required
  • Install dependencies with mix deps.get
  • Install Node.js dependencies with npm install
  • Start Phoenix endpoint with mix phoenix.server

Now you can visit localhost:4000 from your browser.

It is required to put

"svard/elm-phoenix": "2.0.0 <= v < 3.0.0"

as a dependency in the elm-package.json file to make Elm recognise the elm-phoenix package. But since this package is not yet installable by the Elm installer all Elm dependencies are provided in this repo.

The Elm client is located in web/static/elm/Chat.elm.

The Elm code is compiled using the elm-brunch plugin. How it is configured can be seen in brunch-config.js.

Ready to run in production? Please check our deployment guides.

Learn more

About

Proof of concept app for using Phoenix channels in Elm with the elm-phoenix package.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published