I started building a system to better understand how Elixir works and to learn about Phoenix .
Phoenix is a framework for Elixir , the same way Rails is a framework for Ruby . Its mission is to be a productive framework that doesn't compromise on speed or maintainability.
Without further ado, I decided to build a simple CRUD in Elixir to track the books I've read. I used the following commands:
# Create the app. $ mix phx.new booklistx
# Enter the project cd booklistsx
# CRUD generator (Rails scaffold style) mix phx.gen.html Books Book books title:string
# Create the database and the books table mix ecto.create mix ecto.migrate
Enter fullscreen mode
Exit fullscreen mode
I set the books listing as the app's root.
# lib/booklistx_web/router.ex
defmodule BooklistxWeb .…