At the time of writing, Elixir 1.5.0 was the latest. Unfortunately, homebrew only has the latest version of
Elixir. If the latest is not 1.5.0
then please install Elixir from source
$ brew install elixir
This should also install erlang OTP for you.
$ brew install postgresql
brew should also star the postgre service automaticaly
$ mix local.hex
- Copy the application sample file
cp config/application.exs{.sample,}
- Configure your database credentials in
config/application.exs
- Install dependencies with
mix deps.get
- Create, migrate and seed your database with
mix ecto.setup
- Install Node.js dependencies with
npm install
- Use the right version of node by doing
nvm use 6.2.2
- Create a github oauth application
- Use
http://localhost:4000/
as your Authorization callback URL - Once done, copy the
client_id
andclient_secret
and paste it inconfig/application.exs
Start Phoenix endpoint with mix phoenix.server
If you want to run in debug mode, start the server with iex -S mix phoenix.server
Now you can visit localhost:4000
from your browser.