Server-Side Rendering with Elixir/ElixirScript - An experiment on running ElixirScripts directly on the server to render HTML pages

2017 Apr 3

When implementing the Elxir Todo App and thinking about how to test the ElixirScript client code, one idea was to use an Elixir testing framework. Since the client code is also valid Elixir code, we could directly test it on the Beam VM instead of first translating it into JavaScript and then testing it in a Node.js environment.

Taking this idea one step further: Can we get server-side rendering without the need to run JavaScript code on our server and instead execute the client-side code directly inside our Phoenix app?

To some extent, the answer is: yes we can! This tutorial shows you how it is done and also investigates the limitations of this approach.

Read more...

Recent Posts

Spin FV-1 based effects module for Eurorack systems


3D printed panel for a Raspberry Pi with 7" Touch Display


3D printed panels for mounting Korg Volcas into a Eurorack system


Server-Side Rendering with Elixir/ElixirScript - An experiment on running ElixirScripts directly on the server to render HTML pages


Archive

2017 (8)

2016 (4)

2015 (1)

2014 (3)

This page was last updated on 10. October 2017