Erik Näslundblog.naslund.co·Apr 5, 2024Phoenix Admin FrameworksTl;Dr version I personally feel like you should probably either use Kaffy or roll your own admin interface completely from scratch. If you wanna know why, read on. ⚠ This is my very own analysis for my particular needs. Don't take it as being author...Paweł Świątkowski and 1 other are discussing this2 people are discussing thisDiscuss·1.2K readsElixir
Stephan Yustephanyu.hashnode.dev·Mar 15, 2024What are Contexts in Elixir?In Elixir, contexts are modules that group related functions together based on the domain of the application being built. They define a clear public API for interacting with different parts of the application, promoting organization and encapsulation...DiscussElixir
Stephan Yustephanyu.hashnode.dev·Mar 8, 2024Create A New Phoenix AppThis is a short post on how to create an empty Phoenix application using the Phoenix framework, which is a popular web development framework in the Elixir ecosystem similar to Ruby on Rails. By following the steps outlined below, you will set up a ne...DiscussElixir
Pau Riosapaugramming.com·Feb 22, 2024Things I Learned using Phoenix LiveView in 2024 (Part 2)The beauty of assign_async/3 and async_result/1 # LiveView def handle_params(params, _uri, socket) do {:noreply, socket # ... more assigns here |> assign_async_coffees()} end # ... more code here defp assign_async_c...DiscussElixir
Pau Riosapaugramming.com·Feb 19, 2024Things I Learned using Ecto.Schema in 2024 (Part 1)The problem I have two schemas, coffees and orders wherein I want to get the recent completed order from each coffees First solution defmodule Schemas.Coffee do # ... more code has_many :completed_orders, Schemas.Order @spec coffee_query...Discuss·40 readsElixir
Pau Riosapaugramming.com·Feb 15, 2024Things I Learned using Phoenix LiveView in 2024Use handle_params/3 more often rather than mount/3 for assigning. def mount(_params, _session, socket), do: {:ok, socket} def handle_params(params, _uri, socket) do {:noreply, socket |> assign_here_1(params) |> assign_here_...Discussphoenix liveview
Redha Bayu Anggararedhabayuanggara.hashnode.dev·Jan 24, 2024Phoenix and VueJs | Kick Start (Part I)Prerequisites First off, understand the fundamentals of VueJS, ES6, and the basic build of a VueJs application (NPM, Webpack, Babel). What to Expect As the title implies, Phoenix is a web framework for writing backend (server-side) code that provides...Discuss·54 readsPhoenix framework
AbulAsar S.abulasar.com·Jan 4, 2024TIL: How to add a form in a table in Phoenix LiveView?Suppose, we want to add an inline edit feature on a table row. It can be a little tricky to implement. I had a hard time implementing it because I wasn't about one of the concepts of HTML that we cannot add a form tag inside a table. Something like t...Discuss·1 like·107 readsToday I learnedforms
AbulAsar S.abulasar.com·Jan 3, 2024TIL: Add the "download" attribute on the link tag when calling the download endpointDownloading pdf or any other documents is very common in day-to-day web applications. We often see buttons like Download, Generate Invoice, etc buttons in web applications that makes calls to a GET endpoint which does some computations and downloads ...Discuss·1 like·127 readsToday I learnedtoday i learn
Redha Bayu Anggararedhabayuanggara.hashnode.dev·Dec 13, 2023Setup Erlang and Elixir, Phoenix Framework on MacSetup Tools This guide for guideline everything from the start and setup any of the tools mention. Before installation make sure to run the installation process on a native terminal to prevent segmentation faults while building. Setup Homebrew Homebr...Discuss·73 readsPhoenix framework