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: Supervisors, Supervision Trees, Fault-Tolerant Applications.
- Next: 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.
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.