/phoenix_live_view_form_steps

Small test to try and split a form into multiple steps using Phoenix Live View

Primary LanguageElixir

About

This is just a simple test to see how one would split up a form/changeset into multiple steps – with validations along the way – using Phoenix Live View.

The meat happens here lib/live_view_form_web/live/example_live.ex.

For a detailed writeup check out the accompanying blog post

LiveViewForm

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more