├── .gitignore ├── README.md ├── Vagrantfile └── workspace ├── 10 └── factorial.ex ├── 11 └── user.ex ├── 01 ├── Elixir.Say.beam ├── hello.exs └── say.ex ├── 02 └── imutabilidade.exs ├── 03 └── say.ex ├── 04 └── salario.ex ├── 05 └── say.ex ├── 06 └── compara.ex ├── 07 └── sum.ex ├── 08 └── factorial.ex ├── 09 └── tc_factorial.ex └── friends_app ├── .formatter.exs ├── .gitignore ├── README.md ├── config └── config.exs ├── friends.csv ├── lib ├── friends_app.ex ├── friends_app │ ├── cli │ │ ├── friend.ex │ │ ├── main.ex │ │ ├── menu.ex │ │ └── menu │ │ │ ├── choice.ex │ │ │ └── itens.ex │ └── db │ │ └── csv.ex └── mix │ └── tasks │ ├── start.ex │ └── utils │ └── add_fake_friends.ex ├── mix.exs ├── mix.lock └── test ├── friends_app_test.exs └── test_helper.exs /.gitignore: -------------------------------------------------------------------------------- 1 | .vagrant/ 2 | /workspace/.c9/ 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Box Vagrant usada no curso de Elixir 2 | 3 | Para usar essa box você precisa instalar o: 4 | 5 | - VirtualBox (https://www.virtualbox.org/) 6 | - Vagrant (https://www.vagrantup.com/) 7 | - Git for Windows (somente para usuários Windows - https://gitforwindows.org/) 8 | 9 | ## Após a instalação dos itens acima, siga os passos abaixo, usando um terminal. 10 | 11 | 1- Instale o plugin do vagrant 12 | ``` 13 | vagrant plugin install vagrant-vbguest 14 | ``` 15 | 16 | 2- Clone esse repositório e entre na pasta 17 | ``` 18 | git clone https://github.com/jacksonpires/curso-elixir.git 19 | cd curso-elixir 20 | ``` 21 | 22 | 3- Inicie a box 23 | ``` 24 | vagrant up 25 | ``` 26 | 27 | 4- Acesse o Cloud9 em **http://localhost:8181** ou use o **vagrant ssh** para acessar a box via ssh. 28 | 29 | ## Dicas de comandos para gerir sua box 30 | 31 | - Para pausar a box 32 | ``` 33 | vagrant suspend 34 | ``` 35 | 36 | - Para iniciar/levantar a box 37 | ``` 38 | vagrant up 39 | ``` 40 | 41 | - Para parar a box 42 | ``` 43 | vagrant halt 44 | ``` 45 | 46 | -------------------------------------------------------------------------------- /Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | Vagrant.configure("2") do |config| 4 | config.vm.provider "virtualbox" 5 | config.vm.box = "jacksonpires/curso-elixir" 6 | config.vm.box_version = "1.0.0" 7 | 8 | config.vm.network :forwarded_port, guest: 4000, host: 4000 # phoenix 9 | config.vm.network :forwarded_port, guest: 8181, host: 8181 # cloud9 10 | 11 | config.vm.provider "virtualbox" do |vb| 12 | vb.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ] 13 | end 14 | 15 | config.vm.provision "shell", privileged: false, run: "always", inline: $START_CLOUD9_IDE 16 | end 17 | 18 | $START_CLOUD9_IDE = <