Skip to content

Instantly share code, notes, and snippets.

@eitoball
Last active May 26, 2017 10:28
Show Gist options
  • Save eitoball/d9ce83ae7d2c1fea88a4bbfcf42fa0aa to your computer and use it in GitHub Desktop.
Save eitoball/d9ce83ae7d2c1fea88a4bbfcf42fa0aa to your computer and use it in GitHub Desktop.

Phoenix インストールレシピ

http://www.phoenixframework.org/docs/installation

Mac OS Setup

Command line tools

$ sudo xcode-select --install

Homebrew

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Erlang

$ brew install erlang

Elixir

$ brew install elixir

Hex

$ mix local.hex

Phoenix

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

テキストエディタ

ブラウザ

whatbrowser.org を参照して、最新のブラウザに。

Node.js

$ brew install node

PostgreSQL

$ brew install postgresql

TODO: createuser postgres -s

Homebrew services

$ brew services list

動作確認

$ mix phoenix.new phoenix_human
$ cd phoenix_human
$ mix ecto.create
$ iex -S mix phoenix.server

ブラウザで、 http://localhost:4000/ にアクセスする。

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