Setting Up the Sample App

To get a real feel for Ecto, you’ll want to write and execute some code for yourself, and not just read about it. In Chapter 7, Adding Ecto to an Elixir Application Without Phoenix we walk through all the steps of how to add Ecto to an existing application, but for now, we want to make this as easy as possible.

We’ve created a small Elixir application with Ecto already installed and set up. This app is a very simple music database that you might use to keep track of your music collection. It’s a standard Elixir mix project that comes with Ecto and sample data already baked in. All you need to do is download it, configure it to work with your local database, and you’re ready to go. In this section, we’ll walk you through ...

Get Programming Ecto 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.