Hello Coders!
This article presents an open-source Tailwind & Django project styled with Flowbite
, a popular UI Library built on top of Tailwind.
Rocket Django provides a minimal codebase, Tailwind-compatible tooling, Docker, and CI/CD support for Render. The product can be used to bootstrap any type of product on top of Django & Tailwind
, two popular technologies for the modern web.
- π Tailwind & Django Starter -
LIVE Demo
- π Tailwind & Django Starter -
Source Code
The product can be used in a local environment if NodeJs, Python, and (optionally) Docker are already present and properly configured.
For those interested in compiling the product, here are the steps (manual setup):
β Clone/Download the sources
$ git clone https://github.com/app-generator/rocket-django.git
$ cd rocket-django
β Install Dependencies
$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt
β Install Tailwind/Flowbite (another terminal)
$ cd static
$ yarn
$ npx tailwindcss -i ./src/input.css -o ./dist/css/output.css --watch
β Migrate Database
$ python manage.py makemigrations
$ python manage.py migrate
β Start the Django & Tailwind App
$ python manage.py createsuperuser # create the admin
$ python manage.py runserver # start the project
At this point, we should see the dashboard view provided by the Flowbite dashboard.
Another way to start the product is to use the Docker Compose Script shipped with the sources. By navigating to the root of the source code, this is what we need to type in the terminal:
$ docker-compose up --build
For Docker execution, the app starts on localhost:5085
This simple starter also provides a starter page with a responsive navigation bar and a hero section.
β Resources
For more resources and support, follow up on the links & information presented in the following section.
- π Access AppSeed for support and starters
- π Free Django App Generator - A 2nd generation App Builder
β What is Tailwind
Tailwind CSS is a popular utility-first CSS framework used for building responsive and customizable web interfaces. It provides a set of pre-designed utility classes that you can apply directly to HTML elements to style and layout your web pages.
Tailwind CSS is known for its simplicity and flexibility, allowing developers to rapidly create modern and visually appealing user interfaces.
Utility-First β
Tailwind CSS promotes a utility-first approach to styling, where you apply classes directly to HTML elements to define styles. These classes provide a wide range of styling options, such as colors, typography, spacing, and flexbox-based layouts.
Component-Orientedβ
Tailwind CSS can be used in conjunction with component-based frameworks or libraries like Vue.js or React. You can build reusable UI components and apply Tailwind classes to style them.
Pluginsβ
Tailwind CSS supports plugins that add additional utility classes or functionality. This allows you to tailor the framework to your project's needs and integrate third-party plugins as well.
β What is Django
Django is a high-level, open-source web framework written in Python that enables developers to build web applications quickly and with a clean, pragmatic design.
It follows the "batteries-included" philosophy, providing a comprehensive set of tools and libraries that simplify common web development tasks, such as handling databases, managing user authentication, and generating HTML templates.
Django can be used to code simple websites, CMS (content management system), eCommerce Platforms, APIs, or as an interface to ML/AI systems.
Top comments (4)
This post was very good timing for me. I've just started working on a project using Django and Tailwind, and have been using Flowbite for components.
I'll definitely be taking a look at rocket-django
ππ
Nice. Thank you
ππ