Last active
July 8, 2017 04:43
-
-
Save bchase/386d2ffedb3aab21eab0a5cfb8e70dab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # INSTALL -- ERLANG & ELIXIR | |
| wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
| sudo dpkg -i erlang-solutions_1.0_all.deb | |
| sudo apt-get update | |
| sudo apt-get install erlang erlang-dev elixir | |
| # INSTALL -- HEX, PHOENIX, & NODE 6.X | |
| mix local.hex | |
| mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez | |
| curl -sL https://deb.nodesource.com/setup_6.x | bash | |
| apt-get update | |
| apt-get install -y nodejs | |
| # START PROJECT | |
| cd your/dev/dir | |
| mix phx.new project_name --umbrella # [Y] to fetch deps | |
| cd project_name | |
| # # MANUALLY FETCH DEPS (ELIXIR & NODE) | |
| # $ mix deps.get | |
| # $ (cd apps/project_name_web/assets && npm install) | |
| # CREATE & MIGRATE DB | |
| mix ecto.create | |
| mix ecto.migrate | |
| # START THE SERVER | |
| mix phx.server | |
| # alias phs='iex -S mix phx.server' | |
| open http://localhost:4000 | |
| # OPEN A CONSOLE | |
| $ iex -S mix | |
| # alias im='iex -S mix' | |
| Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [kernel-poll:false] | |
| Interactive Elixir (1.4.5) - press Ctrl+C to exit (type h() ENTER for help) | |
| iex(1)> ^C^C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment