# Elixir Level 9: Mix & Hex

> Level 9: Mix & Hex of the LoWisa Elixir course: Projects, Dependencies, Packages and Libraries. 3 lessons and 9 ideas, each explained in one line.

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

## 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

- **Before:** [Level 8: Supervision & OTP](/courses/elixir/level-8-supervision-and-otp/): Supervisors, Supervision Trees, Fault-Tolerant Applications.
- **Next:** [Level 10: Metaprogramming](/courses/elixir/level-10-metaprogramming/): Macros, Quote and Unquote, Compile-Time Extension.

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](/help/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.

---

Source: https://lowisa.dev/courses/elixir/level-9-mix-and-hex/ · Updated 2026-11-25
