Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Elixir Cookbook
  • Toc
  • feedback
Elixir Cookbook

Elixir Cookbook

By : Paulo Pereira
4.5 (2)
close
Elixir Cookbook

Elixir Cookbook

4.5 (2)
By: Paulo Pereira

Overview of this book

This book is intended for users with some knowledge of the Elixir language syntax and basic data types/structures. Although this is a cookbook and no sequential reading is required, the book’s structure will allow less advanced users who follow it to be gradually exposed to some of Elixir’s features and concepts specific to functional programming. To get the most out of this book, you need to be well versed with Erlang.
Table of Contents (11 chapters)
close
10
Index

Creating a Phoenix application


The following recipes of this chapter will relate to an Elixir web framework: Phoenix.

Phoenix is an implementation of the server-side MVC pattern. It is very similar to Ruby on Rails or Python Django, but it is much more than a mere clone.

Phoenix's goal is to combine the high productivity of the mentioned frameworks with high performance, and introduces several concepts such as channels for websocket management, topics as a pub-sub layer, and precompiled templates as well.

Chris McCord created Phoenix, and the first commit dates from May 1, 2014. The implementation pace is impressive and it currently has almost all of the features defined in the initial roadmap; only iOS and Android clients are pending. This project now has more than 80 committers and among them is José Valim, the creator of Elixir.

Our first recipe on Phoenix will show you how to create an application. We will generate the canonical to-do application.

Getting ready

To get started with Phoenix...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete