truss
docker-django-example
Our great sponsors
truss | docker-django-example | |
---|---|---|
5 | 44 | |
31 | 1,088 | |
- | - | |
6.3 | 7.9 | |
23 days ago | 16 days ago | |
TypeScript | Python | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
truss
-
StyleX – Meta's Styling Library
Nice! We copied StyleX's "type-safe extensions" in Truss [1] so things like `` are allowed (setting margin is fine) while disallowing `` (anything "not margin") that would mess up the components internal impl details with a compile error.
That said, we don't actually use the feature that much, vs. higher-level logical props like ``.
I know we're supposed to use build-time CSS-in-JS these days, but afaiu they don't support the rare-but-handy "just spread together ~4-5 different object literals from ~random different conditionals + props", i.e. intermixing styles some inside the component + outside the component, which emotion handles really well.
Basically this [2]. StyleX says it does "cross-file styles"...but can it support that? I kinda assume not, but I'm not sure.
[1]: https://github.com/homebound-team/truss#xstyles--xss-extensi...
[2]: https://github.com/homebound-team/beam/blob/main/src/compone...
-
What working with Tailwind CSS every day for 2 years looks like
Fwiw to the avoid 80%-in-TW / 20%-in-SCSS-or-something-else dichotomy/complexity, we built Truss which brings TW (Tachyons) style abbreviations to the existing "something else" tool chain (Emotion in our case).
So then everything goes through a single system.
https://github.com/homebound-team/truss
> tailwind's and SCSS's VS code integration is pretty amazing
We get that too, by being just vanilla TypeScript, no editor-specific integration necessary. :-D
(I've linked to Truss in another response, so will stop now. :-))
- Why Tailwindcss over styled-components?
- Ask HN: Who is hiring? (November 2021)
-
TailwindCSS JIT with Arbitrary Values
Don't want to take away from Tailwind, it's great.
That said, self-promotion disclaimer but if you like inline/utility CSS, and also like TypeScript/React/Emotion, we've got a "Tailwinds-ish" CSS-in-JS library that we've enjoyed so far:
docker-django-example
-
Django 5.0 Is Released
Congrats on the release to the Django community!
If anyone is curious, I updated my Django / Docker starter kit app to use Django 5.0 at: https://github.com/nickjj/docker-django-example
It pulls together gunicorn, Celery, Redis, Postgres, esbuild and Tailwind with Docker Compose. It's set up to run in both development and production.
-
Working with Docker Containers Made Easy with the Dexec Bash Script
- https://github.com/nickjj/docker-django-example
-
Django Local to Production - FTP or what ?
Lots of handy stuff in this Django and Docker example project https://github.com/nickjj/docker-django-example He does a good course about Docker too.
- Looking to use Docker & Docker Compose in production and need advice.
-
How to Dockerize any Django Application: A Step-by-Step Tutorial
On a positive note, I would recommend perhaps looking at https://github.com/nickjj/docker-django-example for a good, somewhat beginner guide for django + docker work.
-
What is your development cycle when using docker and containers? What's the general flow between developing locally and running the containers to test.
I put together https://github.com/nickjj/docker-django-example which pulls together a typical Django set up using Gunicorn, Celery, Postgres, Redis, esbuild and Tailwind.
-
Minimalist Django starter Template with Docker for both production and local
You could try https://github.com/nickjj/docker-django-example
-
How big is generally your docker image ?
About ~400mb.
- docker-compose file repository?
-
Django Docker Containers and good example projects
Nick Janetakis's post Best Practices Around Production Ready Web Apps with Docker Compose has great tips, and he also has a Django-specific example project that's frequently updated, which is brilliant to learn from.
What are some alternatives?
Poetry - Python packaging and dependency management made easy
Tailwind CSS - A utility-first CSS framework for rapid UI development.
django-async-orm - Bringing Async Capabilities to django ORM
headwind - An opinionated Tailwind CSS class sorter built for Visual Studio Code
launchr - Launchr is an open source SaaS starter kit, based on Django.
full-stack-fastapi-template - Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
direnv - unclutter your .profile
docker-phoenix-example - A production ready example Phoenix app that's using Docker and Docker Compose.
docker-node-example - An example Node / Express app that's using Docker and Docker Compose.
docker-django
tailblocks - Ready-to-use Tailwind CSS blocks.
docker-rails-example - A production ready example Rails app that's using Docker and Docker Compose.