torchbox / storybook-django Goto Github PK
View Code? Open in Web Editor NEWDevelop Django UI components in isolation, with Storybook
License: MIT License
Develop Django UI components in isolation, with Storybook
License: MIT License
Hi there,
I am a bit confused tho I am familiar with Django.
Currently I use django-tailwind which requires me to create a separate theme
app inside my Django project.
I like to build a UI component library so that
Given this in mind, do I still follow the instructions given here to first install django-pattern-library followed by the npm installation of storybook-django and selecting HTML for the storybook template?
When I start this project to demo its capabilities, it does not proxy the rendered markup into storybook.
I have the Django project running and the storybook running.
Mac Sonoma
Python 3.9.18
(Write your steps here:)
python -m venv --prompt sb .venv
source .venv/bin/activate
pip install -r requirements.txt
npm install
python manage.py runserver 0:8001
npm run start
I expected to be able to navigate the Storybook and see the components
I receive this error in Storybook Error occurred while trying to proxy: localhost:6006/pattern-library/api/v1/render-pattern
How tightly coupled is this with React ? I'm reading through the code but I'm having trouble seeing what would need to be done to get it working with Vue.
The README includes a broken link for contributing referencing https://github.com/torchbox/storybook-django/blob/main/CONTRIBUTING.md
How do I set up the storybook-django
project locally to explore?
I have been experimenting and trying to solve my own issues and after a while I am beginning to grok.
The storybook-django
is solely for those who want to use a client side framework like React to work with Django via REST.
If I have no intention of using a client-side and use purely serverside rendering, I should stick to pattern-library.
In other words, pattern-library is your attempt at providing a storybook for server side rendering?
Did I get that right?
This would be nice to document in here so we have a clear example of how to do this with Storybook.
Add documentation about this in the README. Technically 99% of the implementation on this is from DPL and has nothing to do with Storybook, but it’d be nice to document this with the Storybook syntax in JS nonetheless.
Currently in the "late alpha" phase according to https://storybook.js.org/blog/first-class-vite-support-in-storybook/.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.