Skip to content

Boilerplate - Atomic Design with Storybooks in React

Notifications You must be signed in to change notification settings

exjade/Atomic-Design-Folder-Structure

Repository files navigation

This is my Atomic Design boilerplate to work on my projects that require high scalability using a few cool things, like Storybook, etc.

It's for productivity purposes and not wasting time structuring everything when I start a new project.

I am using my basic folder structure but focused on working with the Atomic Design methodology and the powerful frontend workshop environment tool: Storybook.

Atomic Design Concept

  • The methodology consists of creating different levels of graphic components.
    • Atoms
    • Molecules
    • Organisms
    • Templates
    • Pages

Folder Structure

  ─ components
       └ atomic
          └ atoms
          └ layout
          └ molecules
  ─ constants 
       └ routes.js
  ─ context API
  ─ error 
       └ ErrorBoundary.js
  ─ helpers
  ─ hooks
  ─ lib
    └ firebase.js
  ─ pages
  ─ services
  ─ stories
     └ atomic
          └ atoms
          └ layout
          └ molecules
  ─ styles
       └ tailwind.css
       └ app.css 
  • Components => Consisting of HTML and styling
  • Components / atomic => Our components folder
  • Constants => all routes together for easy access
  • Pages => all our Pages
  • Hooks => custom React Hooks live here
  • styles => tailwind.css / css / modules
  • helpers => Protected routes
  • context => context API
  • Services => Firebase Async Functions (Firebase/firestore)
  • Stories => I'll have stories for each component
  • Lib => firebase config live here (Firebase/firestore)

About

Boilerplate - Atomic Design with Storybooks in React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published