wfeltdev / learnstorybook-code

Code for Learn Storybook

Home Page:https://learnstorybook.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chromatic

Chromatic's Intro to Storybook tutorial code

This repository holds the main React and Storybook configuration files for the Intro to Storybook tutorial.

πŸš… Quick start

  1. Clone the repository.

    Run the following command to clone the repository.

    # Clone the template
    git clone https://github.com/chromaui/learnstorybook-code.git
  2. Install the dependencies.

    Navigate into your newly cloned repository and install the necessary dependencies.

    # Navigate to the directory
    cd learnstorybook-code/
    
    # Install the dependencies
    yarn
  3. Open the source code and start editing!

    Open the learnstorybook-code directory in your code editor of choice browse what's inside!

  4. Browse your stories!

    Run yarn storybook to see your component's stories at http://localhost:6006

πŸ”Ž What's inside?

A quick look at the top-level files and directories included with this template.

.
β”œβ”€β”€ .storybook
β”œβ”€β”€ node_modules
β”œβ”€β”€ public
β”œβ”€β”€ src
β”œβ”€β”€ .gitignore
β”œβ”€β”€ package.json
β”œβ”€β”€ yarn.lock
└── README.md
  1. .storybook: This directory contains Storybook's configuration files.

  2. node_modules: This directory contains all of the modules of code that your project depends on (npm packages).

  3. public: This directory will contain the development and production build of the site.

  4. src: This directory will contain all of the code related to what you will see on your application.

  5. .gitignore: This file tells git which files it should not track or maintain during the development process of your project.

  6. package.json: Standard manifest file for Node.js projects, which typically includes project specific metadata (such as the project's name, the author among other information). It's based on this file that npm will know which packages are necessary to the project.

  7. yarn.lock: This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. (Do not change it manually).

  8. README.md: A text file containing useful reference information about the project.

Contribute

If you encounter an issue with the repository, we encourage you to open an issue.

Learning Storybook

  1. Read our introductory tutorial at Learn Storybook.
  2. Learn how to transform your component libraries into design systems in our Design Systems for Developers tutorial.
  3. See our official documentation at Storybook.

About

Code for Learn Storybook

https://learnstorybook.com


Languages

Language:JavaScript 70.9%Language:CSS 25.3%Language:HTML 3.9%