Skip to content

Instantly share code, notes, and snippets.

@holtbp
Last active January 28, 2017 08:04
Show Gist options
  • Save holtbp/22b8b0bce16ee57e0d83b5b2d5885155 to your computer and use it in GitHub Desktop.
Save holtbp/22b8b0bce16ee57e0d83b5b2d5885155 to your computer and use it in GitHub Desktop.
Getting Started with Elixir & Phoenix

Install

This install guide was written for Mac OS X, and Homebrew is required.

If you do not have Homebrew installed, you will find instructions here.

If you do have Homebrew installed, you will want to update it, just in case:

$ brew update

System & dependency versions:

  • Mac OS X: El Capitan, Version 10.11.4 (15E65)
  • Homebrew: 0.9.9 (git revision 9a9a9; last commit 2016-05-04)

Versions installed:

  • Erlang: Erlang/OTP 18 [erts-7.3]
  • Elixir: 1.2.5
  • Phoenix: v1.1.4
  • Mix: 1.2.5

Erlang

Dependencies:

  • XCode Developer Tools
  • autoconf

Installing dependencies:

# Installs XCode Developer Tools
$ xcode-select --install

# Installs autoconf
$ brew install autoconf

Installing Erlang:

$ brew install erlang

Elixir

Dependencies:

  • Erlang

Installing Elixir:

$ brew install elixir

Phoenix

Depenencies:

  • Elixir
  • Postgresql (the default DB for Phoenix)
  • Mix (included in Elixir source)
  • Hex
  • Ecto
  • Cowboy
  • Plug

To install postgres:

$ brew install postgresql

Note: Phoenix install will also install Ecto, Cowboy and Plug.

Installing Phoenix:

# Install Hex (package manager)
$ mix local.hex

# Install Phoenix archive
$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez

Guides

External resources:

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