![]() While most projects have all of their source code in one place, the Elixir community loves distribution of concepts, so from the beginning, it breaks your project into two pieces: clock and clock_web. ![]() The first thing you will notice is that there are two folders. Phoenix will print out all of the files that are automatically generated. The -no-ecto option tells Phoenix to not install any dependencies or setup for database connections. The -live option tells Phoenix to install LiveView and build an example LiveView page. We are going to generate a new Phoenix project named “clock.” Simply type mix phx.new clock -live -no-ecto. We will use a command line tool that generates the code for this project, rather than referencing code in a library. Elixir is nicely complemented by Phoenix LiveView, a technology on the Phoenix framework that is WebSocket based, provides server-rendered UI, and aims to reduce stack complexity. ![]() Distributed, Low Latency, and Fault-TolerantĮlixir is a dynamic functional language that is known for having low latency, and being distributed and fault-tolerant. I will be demonstrating how easy it is to get started building an Elixir application with Phoenix LiveView. Then, adding pre-rendering to optimize your front-end.Ĭhris McCord, the creator of Phoenix LiveView grew tired of this complicated endeavour, and decided to create a framework that could simplify all of this into one, easy-to-understand, product. Adding NodeJS to an existing backend infrastructure to expose an easier-to-use GraphQL application programming interface (API). Using Webpack to bundle your distribution. You’ve likely found yourself building a javascript single-page application in React, Angular, or Vue. If you’ve ever worked on a large application, you know that it is easy for it to become very complex very quickly.
0 Comments
Leave a Reply. |