Skip to content

Instantly share code, notes, and snippets.

@jonataa
Last active September 7, 2019 17:34
Show Gist options
  • Save jonataa/bacf6c535ae8d2489b7bc84c1239dfac to your computer and use it in GitHub Desktop.
Save jonataa/bacf6c535ae8d2489b7bc84c1239dfac to your computer and use it in GitHub Desktop.
Workshop Elixir e Phoenix

Workshop Elixir

Links úteis

Docker

docker run -it —volume "${PWD}:/app" -p 4000:4000 elixir bash

Instalar Phoenix

mix archive.install hex phx_new 1.4.10
apt-get update && apt-get install -y inotify-tools

Instalar NodeJS

apt-get install -y curl software-properties-common
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install nodejs

Criar projeto Phoenix

mix phx.new chat --no-ecto

Executar projeto Phoenix

mix phx.server

Abrir o browser com a URL localhost:4000

Atualizar as dependências

mix deps.get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment