LoginSignup
4

More than 5 years have passed since last update.

Windows10でPhoenix / Elixir使えるようにしてみた

Last updated at Posted at 2016-05-06

環境

  • Windows10
  • コンソールはcmd.exeのみ

参考

準備

chocolatelyインストール

macでいうhomebrew。

コマンドプロンプトを管理者で開く

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

確認

コマンドプロンプトを管理者で再起動して

choco --help

nodejs入れる

cinst nodejs

途中何か訊かれたら「1) yes」を選択すればOK。

npm

cinst npm

elixir

cinst elixir

erlangも一緒に入る

確認

コマンドプロンプトを再起動して

choco list -l

mix help

Phoenix

インストール

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

試作

mix phoenix.new hello_phoenix
cd hello_phoenix

mix deps.get

mix phoenix.server

アクセス

ブラウザで
http://localhost:4000/

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4