DEV Community

Cover image for JungleJS + Storybook + TailwindCSS starter
Eka
Eka

Posted on β€’ Edited on

9 5

JungleJS + Storybook + TailwindCSS starter

πŸ“· Cover image: Isaac Quesada

GitHub logo ekafyi / junglejs-storybook-tailwind

Starter site for JungleJS + Storybook + TailwindCSS

JungleJS + Storybook + TailwindCSS starter site

A starter site for:

  • JungleJS β€” Svelte and GraphQL-based static site generator
  • Storybook β€” UI development environment
  • TailwindCSS β€” utility-first CSS framework

Read my introduction posts on DEV:

Branches

  • master β€” JungleJS + Storybook + Tailwind CSS
  • with-async-data β€” master + async data fetching example

Quick start

Deploy with Vercel Deploy with Netlify

Or create a new repo with Github template.

Install and develop

# Install the global Netlify CLI package if you haven’t
npm install netlify-cli -g

# Clone and go to project directory
git clone https://github.com/ekafyi/junglejs-storybook-tailwind.git
cd junglejs-storybook-tailwind

# Install dependencies
npm install

# Start Jungle server
npm run start

# Start Storybook server
npm run storybook
Enter fullscreen mode Exit fullscreen mode

Jungle runs on localhost:3000.

Storybook runs on localhost:6006.

Directory structure

root
β”œβ”€β”€ .storybook # Storybook config
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ # ...
…
Enter fullscreen mode Exit fullscreen mode

JungleJS is a new static site generator. All Svelte goodness + GraphQL data layer = fast, performant static site. Jungle’s underlying philosophy seems to resemble Eleventy, except Jungle uses Svelte.

But as of now, Jungle does not have live reload yet. We have to restart the server any time we make a change. While only partially addressing the needs for live reload, we can use Storybook for developing UI components. Even in project with hot reloading/live reload, it’s useful to have an isolated UI development environment like Storybook, which also provides us with various addons, from accessibility to testing. Finally, Tailwind provides customizable, utility-first CSS, which helps us build our UI faster.

And thus this starter site was born.

For a quick start, you can click the β€œUse this template” button on the Github repository or run git clone https://github.com/ekafyi/junglejs-storybook-tailwind.git.

Let me know if you're building anything with this!


Bonus track

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay