Skip to content

pikender/worldly_test_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WorldlyTestApp

  • Add yamerl and worldly as dependency in mix.exs

    defp deps do
      [
        {:yamerl, github: "yakaz/yamerl"},
        {:worldly, "0.1.0"}
      ]
    end
    
  • Get the worldly dependency mix deps.get

  • Add yamerl and worldly as application dependency in mix.exs

    def application do
      [applications: [:logger] ++ [:yamerl, :worldly]]
    end
    
  • Add data_path config in config/config.exs

    config :worldly, :data_path, Path.join(Mix.Project.deps_path, "/worldly/data")
    
  • Start IEx iex -S mix

  • Play with Worldy

    iex> Worldy.Country.with_name("India")
    [%Worldly.Country{alpha_2_code: "IN", alpha_3_code: "IND", common_name: "",
      has_regions: true, name: "India", numeric_code: "356",
      official_name: "Republic of India"}]
    

Check worldly README

About

Demonstrating how to use worldly hex package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages