Louis Pilfold 1/11/2023

Using Gleam JS with Elixir’s Phoenix

Read Original

This technical guide demonstrates how to set up a Gleam project to compile to JavaScript and integrate it into an Elixir Phoenix web application. It covers creating a new Phoenix app, configuring a Gleam project within the assets directory, setting the JavaScript target, and wiring the compiled code into the Phoenix asset pipeline. The article also explains how to enable automatic recompilation of Gleam code using Phoenix's development watchers.

Using Gleam JS with Elixir’s Phoenix

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week