what is mix.exs file code example

Example: what is mix.exs file

- mix.exs
  - Project configuration
  - Our mix.exs defines two public functions:
    - Project: Which returns project configuration like the project name and version.
    - Application: Which is used to generate an application file
    
  def project do
    [
      app: :hello,
      version: "0.1.0",
      elixir: "~> 1.7",
      elixirc_paths: elixirc_paths(Mix.env()),
      compilers: [:phoenix, :gettext] ++ Mix.compilers(),
      start_permanent: Mix.env() == :prod,
      aliases: aliases(),
      deps: deps()
    ]
  end

  # Configuration for the OTP application.
  #
  # Type `mix help compile.app` for more information.
  def application do
    [
      mod: {Hello.Application, []},
      extra_applications: [:logger, :runtime_tools]
    ]
  end