Skip to content

Instantly share code, notes, and snippets.

@tetiana12345678
Last active October 8, 2017 13:39
Show Gist options
  • Save tetiana12345678/ff5cd09f6352e8d5354a4a9c9a6eb2e3 to your computer and use it in GitHub Desktop.
Save tetiana12345678/ff5cd09f6352e8d5354a4a9c9a6eb2e3 to your computer and use it in GitHub Desktop.

Installation Guide

Requirements:

  • Erlang 18 or later
  • Elixir 1.4 or later
  • Phoenix 1.3
  • Node.js 6.4.0 or later

Links:

Recommend using asdf:

https://github.com/asdf-vm/asdf

https://www.icicletech.com/blog/elixir-and-erlang-setup-with-asdf-version-manager

$ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.4.0
$ asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs
$ asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang
$ asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir
$ asdf list-all erlang # list all erlang versions available
$ asdf install erlang 20.0
$ asdf list-all elixir # list all elixir versions available
$ asdf install elixir 1.5.2
$ asdf list-all nodejs # list all nodejs versions available
$ asdf install nodejs 8.6.0

Install Phoenix

$ mix local.hex
$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez

Check versions

Elixir & Erlang/OTP

elixir -v

Phoenix

$ mix phx.new -v
@ktec
Copy link

ktec commented Oct 8, 2017

Once you've completed this, head over to the tutorial and build yourself a chat app!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment