Menu

Post image 1
Post image 2
Post image 3
Post image 4
Post image 5
1 / 5
0

Organizing flash messages in Phoenix

DEV Community·Guilherme Yamakawa de Oliveira·about 1 month ago
#ScHPsKsj
Reading 0:00
15s threshold

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 .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More