Hacker News new | ask | show | jobs
by nickjj 1907 days ago
If anyone is curious I just updated my Docker / Django starter project to use 3.2. It uses Docker Compose + Django + Celery + PostgreSQL + Redis + Webpack + TailwindCSS and it's available at: https://github.com/nickjj/docker-django-example

As an aside it's also using TailwindCSS 2.1 with the JIT compiler enabled.

4 comments

This is awesome, thanks for sharing. I maintain a similar boilerplate (graphene + semantic ui).

What's your take on Tailwind so far? I've found the lack of a react offering has really slowed me down.

> What's your take on Tailwind so far? I've found the lack of a react offering has really slowed me down.

It's working out well for the most part, but I don't use React.

I mainly develop server rendered apps and sprinkle in JS as needed.

The only weak link with Tailwind IMO is the lack of JS for doing common things like hiding / showing menus, tooltips, modals, tabs and other stuff you'd find baked into Bootstrap. I know there's some JS included in the TailwindUI components but it's not for JS libraries that I use. I prefer using StimulusJS which isn't something they support at the moment.

Fortunately there's a bunch of StimulusJS Tailwind examples provided by the community so it's not too bad in the end.

I imagine it's hard for Adam because there's React, Vue, Alpine and StimulusJS, all of which are popular enough where there's a good amount of users using them. I'm optimistic that he'll think of a way to cater to all of these users in some way, it'll only be a matter of time. NOTE: This is just speculation, I'm not affiliated with Tailwind in any way.

The creators of TailwindCSS also have a paid offering called TailwindUI (just pre-created components with documentation for your application and marketing site) that has React support. It also comes with Figma mockups for each component. It's a bit pricy but very high quality.
I never used Tailwind but given its popular modern look, I wonder why there is a lack of open source React components built on top of it?
This React library doesn't seem to be based on Tailwind?
I went back to this thread to find the docker-django-example. I have to say, this is really solid work, and thank you for sharing it. Tailwind is commercial I see, is there a free way to get set up with a nice looking "dashboard + sidebar" UI without buying the Tailwind UI?
Thanks.

TailwindCSS is open source and free. It's at https://tailwindcss.com/.

TailwindUI is an optional paid product that has a bunch of pre-made TailwindCSS components created by the makers of TailwindCSS. Basically pre-made widgets and layouts.

TailwindUI has a few free components too (no signups required) at https://tailwindui.com/preview.

And if you Google around for Tailwind components and themes you'll be able to find a bunch. It's just CSS at the end of the day so there's lots of community driven examples. For example here's a bunch of free ones at https://tailwindcomponents.com/components, https://www.tailwindtoolbox.com/starter-templates and more at https://github.com/aniftyco/awesome-tailwindcss#ui-libraries....

I see TailwindUI is only about $170, so I went ahead and purchased it. It's of course CSS only, with templates for dashboards and things.
Just upgraded my side project to both Django 3.2 and Tailwind 2.1 (with Jit enabled). No issues at all, other than some deprecation warnings on some 3rd party packages that will probably be fixed soon.
Looks really good. What made you choose Tailwind over the alternatives?
We use TailwindUI - combined with Django gives a really nice kickstart on new projects. Just made a Proof of Concept last two weeks for an internal business app for a new customer and did impress them easy with a working app + login + responsive nice looking layout. Used VUEjs for menu's, keyboard events and a location picker.
I've used more component-based frameworks like Bootstrap before, but I've found it's easier to have a set of utilities and build my own components on top of that.
Why celery and redis? Couldn’t you consolidate with just redis? Love the stack though
Celery describes itself as a "task queue" but I find it a bit confusing: it's a job manager, which needs a queue from which to pull/push jobs. Redis is this queue
Django_Q instead of Clerery