/phx_live_storybook_sample

Sample web application for phx_live_storybook

Primary LanguageElixir

PhxLiveStorybookSample

Demo phoenix web application to showcase phx_live_storybook.

👉 Available online here

Setup

  • Install dependencies with mix deps.get
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000/storybook from your browser.

Deployment

First make sure your sample app is using an up-to-date storybook library:

MIX_ENV=prod mix deps.update phx_live_storybook

Then you can test your release locally with:

MIX_ENV=prod mix release
PHX_SERVER=true _build/prod/rel/phx_live_storybook_sample/bin/phx_live_storybook_sample start

Or go for production instead:

fly deploy --no-cache