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

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


How to develop a functional user interface for a Todo Web Application with Elixir, ElixirScript, Phoenix, React and Flux


Smarkant - Convert your IKEA Bekant table into a smart IoT device


Sunrise Alarm Clock


Archive

2017 (5)

2016 (4)

2015 (1)

2014 (3)

This page was last updated on 01. April 2017