Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.46 KB

2.getting_started.md

File metadata and controls

56 lines (35 loc) · 1.46 KB

Getting started

[TOC]

1. Setup environment

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.

  1. Install asdf. Follow instruction here

  2. Install postgresql

    Follow instruction here to install postgres plugin then run following command

     asdf install postgres 10.5
     asdf global postgres 10.5
    
  3. Install Erlang

    Follow instruction here to install erlang plugin then run following commands

     asdf install erlang 22.1
     asdf global erlang 22.1
  4. 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

2. Install Chubi

  1. Clone project with git@github.com:bluzky/chubi.git
  2. Install dependencies with mix deps.get
  3. Create and migrate your database with mix ecto.setup
  4. 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