[TOC]
If you have Elixir developing environment on your machine, you can skip this step.
In this guide, I use asdf to manage version for Erlang, Elixir, Postgres .... You can secify version for each plugin. If you have any application installed, you can skip in and move to the next.
-
Install
asdf
. Follow instruction here -
Install
postgresql
Follow instruction here to install postgres plugin then run following command
asdf install postgres 10.5 asdf global postgres 10.5
-
Install
Erlang
Follow instruction here to install erlang plugin then run following commands
asdf install erlang 22.1 asdf global erlang 22.1
-
Install
Elixir
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git asdf install elixir 1.9.4 asdf global elixir 1.9.4
- Clone project with
git@github.com:bluzky/chubi.git
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
- Start Phoenix endpoint with
mix phx.server
Now you can visit localhost:4000
from your browser.
Access admin localhost:4000/admin
username: admin
password: 123123