How to Uncover Test Coverage and Understand Code in Elixir by Crashing Your AppElixir library such as excoveralls allow us to generated an HTML report that summarise whether each line of code in an elixir project has been covered by our unit test suite or not. The HTML report can be easily generated by running mix coveralls.htm...Nov 20, 2024 · 2 min readblog.abiwinanda.com
Controller-Free Approach for File Export in Phoenix LiveViewIn a recent project involving LiveView, I was tasked with building a page to display an accounting report. Alongside this requirement, it was important to enable users to export the report as an Excel file. While the common approach involves creating...Nov 11, 2024 · 5 min readblog.abiwinanda.com
Solving Data Consistency in Elixir with Ecto's prepare_changesWhen developing an application, it's common for the state of one piece of data to depend on the state of another. This interdependence introduces complexity, as changes in one dataset must remain consistent with changes in others to avoid conflicts o...Nov 10, 2024 · 5 min readblog.abiwinanda.com