-
グローバル環境に以下をインストール
dnf install nodejs
dnf install sqlite
# SQLiteを使用する場合dnf install erlang
dnf install elixir
dnf install rebar
dnf install inotify-tools
-
npmアップデートツールを導入しておく
npm -g install npm-check-updates
-
ローカル環境にhexをインストール
mix local.hex
- パッケージ管理ツールであり、npmやgem相当のもの
-
ローカル環境にphoenixをインストール
mix archive.install /path/to/phx_new.ez
- 入手先は以下
-
プロジェクトのルートディレクトリに移動
cd sample_project
-
依存パッケージを取得
mix deps.get
cd assets
npm-check-updates -u
npm install
cd ..
-
データベースのマイグレーション
mix ecto.migrate
-
サーバを起動
mix phx.server
- この状態で
http://localhost:54334/
にブラウザでアクセスする
- この状態で