Elixir / Phoenix
Install Homebrew first:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then running brew install elixir
will install both Elixir and it's dependency - Erlang.
Install mix with mix local.hex
.
Install Phoenix as per instructions:
mix archive.install https://github.com/phoenixframework/archives/raw/master/phoenix_new.ez
Node.js
You can install and manage your Node.js versions with NVM. Install nvm with:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.4/install.sh | bash
If curl
is not available, you can install it with brew install curl
. Then run:
nvm install node
to download and compile and latest version of Node.js.
Database
Download Postgres.app and run it. When you create your Phoenix project, in your config/dev.exs
file, you just need to supply a name for your database - the adapter will use default values for the rest:
config :myphoenixapp, MyPhoenixApp.Repo,
adapter: Ecto.Adapters.Postgres,
database: "myphoenixapp_dev",
hostname: "localhost",
pool_size: 10