Elixir course

Elixir Level 9: Mix & Hex

Mix & Hex is level 9 of 16 of the LoWisa Elixir course. It has 3 lessons and 9 ideas. Below is every lesson and what it teaches, in one line each.

Updated 2026-11-25

Projects

  • mix new. Mix scaffolds, builds, tests and runs projects: the one tool every Elixir repo shares.
  • mix.exs. The mix.exs file declares the project: app name, version, dependencies, aliases.
  • Environments. Mix environments: dev, test, prod: configure per stage from one codebase.

Dependencies

  • Hex packages. Hex is the package registry: deps declared in mix.exs, locked in mix.lock.
  • The lock file. The lock file pins exact versions: committed, so every machine builds the same bytes.
  • Dependency hygiene. Every dependency ships in your product: audited on entry, pruned when idle.

Packages and Libraries

  • Docs as deliverable. ExDoc builds beautiful docs from @doc and @moduledoc: documentation as a compiled artifact.
  • Doctests. Doctests execute the examples in your docs: documentation that cannot rot.
  • Publishing. mix hex.publish ships a package: versioned, documented, installable by strangers.

Before and after this level

In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.

Frequently asked questions

What does Elixir Level 9: Mix & Hex cover?

Projects, Dependencies, Packages and Libraries: 3 lessons and 9 ideas.

What should I know before this level?

The level before it, Level 8: Supervision & OTP, which covers Supervisors, Supervision Trees, Fault-Tolerant Applications.

Learn Elixir on your phone

The first level is free. LoWisa is on Google Play and the App Store.