Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

Ash Tutorial

17_00_12_ash_tutorial_4ecd.livemd

Ash Tutorial

Mix.install([:ash])

Overview

In this tutorial you will create Ash Resources, query on them and use ETS as your data storage. You won’t be building an overarching application, instead you’ll build Resources that introduce you to Ash concepts.

Each tutorial builds on top of the previous one, it is therefore recommended to start the tutorial sequentially from the beginning as each section introduces new concepts that will later be used.

The best way to follow the tutorial is reading the instructions in the tutorial, coming up with your own solution, and then verifying with the proposed solution. It is also recommended to not copy paste code.

The goal of this tutorial is to get you familiar with the basic concepts of Ash, and give you a good sense of what’s possible. It serves as a primer for the Ash documentation. Feel free to consult this documentation alongside the tutorial to learn more. That being said, the documenation shouldn’t be necessary to complete the tutorial.

Have fun!

  1. Resources
  2. Actions
  3. API
  4. Data Persistence
  5. Querying
  6. Attributes
  7. Customizing Actions
  8. Relationships
  9. Managing Relationships
  10. Code Interfaces
  11. Aggregates
  12. Calculations

Contributing?

Anything missing? Any errors? Tutorials out of date? Contributions are welcome!

When contributing, please follow the guidelines in diataxis.