Skip to content

amcolin/delirium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Syllabus Elixir Girls

  • Welcome
  • Getting started
    • Installing Elixir
    • What is Elixir? (First Talk)
    • Introduction to IEx
    • Elixir types
      • Integers
      • Floats
      • Strings
      • Athoms
      • Tuples
      • Lists
      • Maps
    • Pattern matching
  • Let's create our first project (Workshop start)
    • Using mix to create a new project

        mix new orval

      You will see in your terminal

      * creating README.md
      * creating .formatter.exs
      * creating .gitignore
      * creating mix.exs
      * creating config
      * creating config/config.exs
      * creating lib
      * creating lib/orval.ex
      * creating test
      * creating test/test_helper.exs
      * creating test/orval_test.exs
      
      Your Mix project was created successfully.
      You can use "mix" to compile it, test it, and more:
      
          cd orval
          mix test
      
      Run "mix help" for more commands.
      
      Intersting note: we decide to use Orval as a project name in honor to Anne-Françoise Pypaert, the first female Trappist brewmaster. You can know more abot her story in this link:
       http://drinkbelgianbeer.com/breweries/meet-anne-francoise-pypaert-the-first-female-trappist-brewmaster
      
    • Running our code

      Starts iex in the context of your project—it uses mix to build the application environment and then enters iex

      iex -S mix 

      If your terminal is showing like below you are in the rigth way 👍

      Erlang/OTP 21 [erts-10.3.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [hipe] [dtrace]
      
      Compiling 1 file (.ex)
      Generated orval app
      Interactive Elixir (1.8.1) - press Ctrl+C to exit (type h() ENTER for help)
      iex(1)>
      
      
    • Write a FindWord Module Open Orval project in your favorite editor You should have some tree folder like this

      |_____build
      |____config
      | |____config.exs
      |____lib
      | |____orval.ex
      |____test
      | |____orval_test.exs
      | |____test_helper.exs
      |____.formatter.exs
      |____.gitignore
      |____mix.exs
      |____README.md
      

      Create a new file find_word.ex under lib folder. We suggest you install a plugin like: ElixirLS Open your new file let's start define the name for our module, Every Module in elixir is defined like below

      defmodule FindWord do
      
      end

      Inside FindWord write a function say_helow

      defmodule FindWord do
      
        def say_hellow do
          IO.puts "Hellow Elixir Girls"
        end
      
      end

      Now go to your terminal and run recompile just to compile our new changes

        iex(2)> recompile
        :ok
      

      Type FindWord.say_hellow

    • Refactor into pipelines

------------------------ after lunch ---------------------------------------------------

  • What is Phoenix (second talk)
  • Let's create a Blog post app using Phoenix
    • Create new phx project
    • Add a new controller
    • Add a new rote into your router
    • Add your template
    • Go to your browser
    • You did it!
      • Create
      • Edit
      • Update
      • Delete
    • Add a nice view
    • Well done 😀. You have your new blog post using Elixir and Phoenix

About

Elixir Girls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published