Adding truly custom page to Phoenix LiveDashboard
AmberBit's blog
by AmberBit
3y ago
<p>On occasion, however, we find ourselves in the need to add a custom page. <a href="https://hexdocs.pm/phoenix_live_dashboard/Phoenix.LiveDashboard.html">The official documentation</a> has a <a href="https://hexdocs.pm/phoenix_live_dashboard/Phoenix.LiveDashboard.PageBuilder.html#content">chapter detailing how to do just that</a>, and it’s a good enough approach in 99% of our use cases.</p><p>The outlined approach works when you want to add tabular data, that is limited in size, so it can fit all on one page, and you can use built in searching / sort ..read more
Visit website
“mix release†and missing dependencies
AmberBit's blog
by AmberBit
3y ago
<p>When you use <a href="https://hexdocs.pm/mix/Mix.Tasks.Release.html">Elixir releases</a> to deploy your application, you may find yourself in a situation where not all of the compile-time dependencies are included in the release.</p><p>The problem is particularly annoying, since you likely to have a CI pipeline building the project and testing it successfully, then it’s being built and deployed to server. You will only learn about missing runtime dependency that is within release at the point when you attempt to start, or even after you started your release ..read more
Visit website
The misunderstanding of “let it crashâ€
AmberBit's blog
by AmberBit
3y ago
<p>If you are programming in <a href="https://www.erlang.org/">Erlang</a>, <a href="https://elixir-lang.org/">Elixir</a> or any other of <a href="https://github.com/llaisdy/beam_languages">growing number of languages that run on top of BEAM VM</a>, you probably heard about “let it crash†philosophy.</p><p>There are myths and misunderstandings of the concept, both within - and outside of the community of BEAM developers, as you can clearly see on this thread I stumbled upon recently:</p><blockquote class="twitter-tweet"><p ..read more
Visit website
How Elixir’s Ecto differs from Ruby’s ActiveRecord
AmberBit's blog
by AmberBit
3y ago
<h2>Introduction</h2><p>At <a href="https://www.amberbit.com">AmberBit</a> we still mostly develop Ruby on Rails applications for our clients. For about a year now, however, we have been looking at <a href="http://elixir-lang.org">Elixir</a> programming language and it’s ecosystem, to help us solve problems that Ruby (and Rails) fail to address. We used Elixir with client’s projects already, and the experience was generally positive.</p><p>The issues we have, when using Ruby, are usually a result of limitations put on us by the language ..read more
Visit website
Hold on, I know where it leads…
AmberBit's blog
by AmberBit
3y ago
<h2>Brave new world?</h2><p>While ago I started my journey with <a href="http://elixir-lang.org">Elixir</a>. Learning the language was fun (I probably still have a few bits about OTP to catch up on, however). I pushed some simple commits to Elixir itself, made some bug fixes to <a href="http://github.com/elixir-lang/ecto">Ecto</a>. And then I figured I’m ready to learn how to use <a href="http://www.phoenixframework.org">Phoenix</a>, the web app framework similar to Rails.</p><p>When I was working on a simple app, I generated ..read more
Visit website
Building Backdoor: web console for Elixir & Phoenix applications - Part #5
AmberBit's blog
by AmberBit
3y ago
<p>Part #5 of our series on building web console for Elixir &amp; Phoenix applications with Phoenix LiveView.</p><h2>In this series:</h2><ol><li><a href="/blog/2020/7/29/building-backdoor-web-console-for-elixir-and-phoenix-part-1/">Part 1: Project set up and simple code executor</a></li><li><a href="/blog/2020/8/2/building-backdoor-web-console-for-elixir-and-phoenix-part-2/">Part 2: Making imports and macros work</a></li><li><a href="/blog/2020/8/17/building-backdoor-web-console-for-elixir-and-phoenix-pa ..read more
Visit website
Building Backdoor: web console for Elixir & Phoenix applications - Part #4
AmberBit's blog
by AmberBit
3y ago
<p>Part #4 of our series on building web console for Elixir &amp; Phoenix applications with Phoenix LiveView.</p><h2>In this series:</h2><ol><li><a href="/blog/2020/7/29/building-backdoor-web-console-for-elixir-and-phoenix-part-1/">Part 1: Project set up and simple code executor</a></li><li><a href="/blog/2020/8/2/building-backdoor-web-console-for-elixir-and-phoenix-part-2/">Part 2: Making imports and macros work</a></li><li><a href="/blog/2020/8/17/building-backdoor-web-console-for-elixir-and-phoenix-pa ..read more
Visit website
Building Backdoor: web console for Elixir & Phoenix applications - Part #3
AmberBit's blog
by AmberBit
3y ago
<p>Part #3 of our series on building web console for Elixir &amp; Phoenix applications with Phoenix LiveView.</p><h2>In this series:</h2><ol><li><a href="/blog/2020/7/29/building-backdoor-web-console-for-elixir-and-phoenix-part-1/">Part 1: Project set up and simple code executor</a></li><li><a href="/blog/2020/8/2/building-backdoor-web-console-for-elixir-and-phoenix-part-2/">Part 2: Making imports and macros work</a></li><li><a href="/blog/2020/8/17/building-backdoor-web-console-for-elixir-and-phoenix-pa ..read more
Visit website
Building Backdoor: web console for Elixir & Phoenix applications - Part #2
AmberBit's blog
by AmberBit
3y ago
<p>Part #2 of our series on building web console for Elixir &amp; Phoenix applications with Phoenix LiveView.</p><h2>In this series:</h2><ol><li><a href="/blog/2020/7/29/building-backdoor-web-console-for-elixir-and-phoenix-part-1/">Part 1: Project set up and simple code executor</a></li><li><a href="/blog/2020/8/2/building-backdoor-web-console-for-elixir-and-phoenix-part-2/">Part 2: Making imports and macros work</a></li><li><a href="/blog/2020/8/17/building-backdoor-web-console-for-elixir-and-phoenix-pa ..read more
Visit website
Building Backdoor: web console for Elixir & Phoenix applications - Part #1
AmberBit's blog
by AmberBit
3y ago
<p>Part #1 of our series on building web console for Elixir &amp; Phoenix applications with Phoenix LiveView.</p><h2>In this series:</h2><ol><li><a href="/blog/2020/7/29/building-backdoor-web-console-for-elixir-and-phoenix-part-1/">Part 1: Project set up and simple code executor</a></li><li><a href="/blog/2020/8/2/building-backdoor-web-console-for-elixir-and-phoenix-part-2/">Part 2: Making imports and macros work</a></li><li><a href="/blog/2020/8/17/building-backdoor-web-console-for-elixir-and-phoenix-pa ..read more
Visit website

Follow AmberBit's blog on FeedSpot

Continue with Google
Continue with Apple
OR