Chapter 7Adding Ecto to an Elixir Application Without Phoenix
We hope that by now, you’re so enthralled with Ecto that you want to add it to all your projects right away (we can dream, can’t we?). Adding Ecto to a project isn’t too difficult, but it does require a few more steps beyond just adding the hex package to your list of dependencies.
Most of the time, you won’t need to worry about this. Phoenix projects, for example, have Ecto included in their initial setup, and the music app we were playing with in Part I came with Ecto included as well. But there may be times when you’ll need to add Ecto to a project yourself. This chapter will show you how to do that, by walking you through the following steps:
- Creating a new project
- Adding Ecto ...
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.