← All series

Series contents

Log in to track your progress

  1. 1. A worker to log stats from a YouTube’s API Episode
  2. 2. Querying Alexa Site API and parsing XML Episode
  3. 3. Adding Ecto and a Postgres database to StatWatch Episode
  4. 4. Putting an Elixir OTP app in our Elixir OTP app Episode
  5. 5. Launching StatWatch.me (side project) Episode
  6. 6. Planning a Phoenix web app for StatWatch Episode
  7. 7. From backend OTP app to Phoenix app Episode
  8. 8. Adding sessions and logins to StatWatch Episode
  9. 9. Password hashing and Ecto associations for StatWatch Episode
  10. 10. Permalinks and an admin auth plug for StatWatch Episode
  11. 11. Creating Ecto associations between profiles and stats Episode
  12. 12. Zero Dependency Pagination in Phoenix (Part 1) Episode
  13. 13. Zero Dependency Pagination in Phoenix (Part 2) Episode

Creating Ecto associations between profiles and stats

We finish migrating StatWatch from a CSV file-driven app to a database-driven app. We use Ecto to create associations between user profiles and their associated stats and streamline our stat saving by using Repo.insert_all to take in many rows en masse.

shemas & migrations: beginning of video

Updating the main module: (7:00)

For a simpler solution watch the first 16m45s of this video then go to Lesson 14b

Open standalone page ↗

No Comments