habits
habits copied to clipboard
An Elixir/Phoenix app for tracking daily habits, ready to deploy to Heroku.
I tried spinning it up, [using the nice little button](https://dashboard.heroku.com/new?button-url=https%3A%2F%2Fgithub.com%2Fstevegrossi%2Fhabits&template=https%3A%2F%2Fgithub.com%2Fstevegrossi%2Fhabits ), but it fails complaining about the Elixir version. I don't know why but it fetches Elixir 1.7.12 and then...
## `assoc` ```elixir def list_habits(%Account{} = account) do account |> assoc(:habits) |> Repo.all() end ``` - Requires `import Ecto, only: [assoc: 2]` - 👎 Pattern-matching (optional, but ideal) requires reference...
https://github.com/christopheradams/elixir_style_guide#module-pseudo-variable
example from http://blog.plataformatec.com.br/wp-content/uploads/2017/05/whats-new-in-ecto-2-1.pdf: ```elixir defmodule MyApp.Factory do alias MyApp.Repo # Factories def build(:post) do %MyApp.Post{ title: "hello world" } end def build(:comment) do %MyApp.Comment{ body: "good post" } end def...
https://brainlid.org/elixir/2017/06/14/security-scanning-phoenix.html
Then remove this from `test_helper`: Application.put_env(:wallaby, :js_errors, false)
`all_the_things.jpg`
Bumps [webpack](https://github.com/webpack/webpack) from 4.4.0 to 5.94.0. Release notes Sourced from webpack's releases. v5.94.0 Bug Fixes Added runtime condition for harmony reexport checked Handle properly data/http/https protocols in source maps Make...