/avc_storybook

Rails ActionView::Component with Storybook previews

Primary LanguageRuby

ActionView::Component Standalone Preview

This project demonstrates a Storybook running in standalone mode with a Rails backend that generates Stories based on ActionView::Component previews.

Ruby Version

Use your favorite Ruby version manager to install 2.5.5

Install Gems and Node modules

bundle install
yarn

Run the Rails backend:

rails s

This starts a Rails dev server on port 3000.

Run Storybook

To view the stories in the storybook UI:

yarn storybook

This runs the Storybook dev server loading stories from the Rails storybook_preview endpoint