We cover:

  • Project structure
  • The mix build tool
  • ExUnit testing framework
  • Documentation

Chapter 13Organizing a Project

Let’s stop hacking and get serious.

You’ll want to organize your source code, write tests, and handle any dependencies. And you’ll want to follow Elixir conventions, because that way you’ll get support from the tools.

In this chapter we’ll look at mix, the Elixir build tool. We’ll investigate the directory structure it uses and see how to manage external dependencies. And we’ll end up using ExUnit to write tests for our code (and to validate the examples in our code’s documentation). To motivate this, we’ll write a tool that downloads and lists the n oldest issues from a GitHub project. Along the way, we’ll need to find some libraries ...

Get Programming Elixir 1.3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.