Closed dthyresson closed 1 year ago
hey @dthyresson thanks for providing this! We haven't open-sourced our docs yet, but we'll do that at some point. We're happy to provide the installation instructions for Redwood in the set-up guide in the meantime!
Thanks! Happy to help in any way - I can write out, test, review ... whatever you need.
We are almost ready, have a look:
https://tremor-so-git-feat-analyticsrollout-tremor.vercel.app/docs/getting-started/installation
@severinlandolt That looks great. I have a few comments about perhaps using RedwoodJS's component generators to include the tremor components.
The basic setup is similar to the demo dashboard I just built here: https://github.com/dthyresson/redwoodjs-tremor-dashboard-demo
You can see a dynamic dashboard where data like KPI and SalesPeople data can be edited and reflected in the dashboard.
See: https://github.com/dthyresson/redwoodjs-tremor-dashboard-demo
I can, or RedwoodJS can or tremor can host this demo app if want and then link to it in docs.
Note: demo dashboard with RedwoodJS moved to https://github.com/redwoodjs/redwoodjs-tremor-dashboard-demo
@severinlandolt Any chance you could share the markdown with me. In general the beginning is fine (small weeks like the note admonition needed etc).
But, later need to change the use of rpm to yarn and I think it would make sense to introduce the rw component generators to:
yarn rw generate component KpiCard
for that import and create component and then also to add it into the dashboard page.
Happy to write up but might be easier for me to do than sending edit notes?
Plus - I can test a run through of the steps quickly.
@severinlandolt -> Now available as markdown here: https://github.com/redwoodjs/redwoodjs-tremor-dashboard-demo/blob/main/installation-redwoodjs.md
Thank you, I just wove it all together. I shortened some steps in the Dashboard section so that the whole page stays primarily about the installation. In the end, there are the links to your dashboard repo. I released it silently today: https://www.tremor.so/docs/getting-started/installation
Thanks @severinlandolt !
While I do understand that a shorted doc is helpful here, I do think it doesn't showcase redwood fully as to how it can use components that use tremor components.
But, no problem -- I have a solution!
I added my original doc to the redwoodJS How To docs are here: https://deploy-preview-8206--redwoodjs-docs.netlify.app/docs/canary/how-to/build-dashboards-fast-with-tremor
This is a preview, not yet released.
Maybe we can add to the next steps:
Question: is it "tremor" or "Tremor" when using mid-sentence? I think I used both but want to be correct.
Also, it might be nice to add a style for the backtick style
as I use them but spacing and look is a bit odd on the terror docs render.
Last, I'll share with team for any comments.
Just noticed:
These links seem off in the markdown render for other components and blocks.
Hi, I'm on the RedwoodJS Core Team and was just made aware of tremor -- and installing in in a RedwoodJS project is a little bit different than installing in NextJS or React. But it's super simple:
Use the Redwood setup command to install TailwindCSS
Install tremor in the web workspace
web/config/tailwind.config.js
Note: the path for node_modules is
../
and that's it.
I then generated a page:
and added a simple area chart:
and works!
Question: I looked for the docs in the repo, but didn't see them. Happy to write up a PR for RedwoodJS setup.