Skip to content

phenixdigital/phoenix_storybook_demo

Repository files navigation

PhoenixStorybookDemo

Demo phoenix web application to showcase phoenix_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 demo app is using an up-to-date storybook library:

MIX_ENV=prod mix deps.update phoenix_storybook

Then you can test your release locally with:

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

Or go for production instead:

fly deploy --no-cache