/django-htmx-tailwind

Django + htmx + Tailwind CSS

Primary LanguageJavaScriptMIT LicenseMIT

Rapid Prototyping with Django, htmx, and Tailwind CSS

Want to learn how to build this?

Check out the post.

Want to use this project?

  1. Fork/Clone

  2. Create and activate a virtual environment:

    $ python3 -m venv venv && source venv/bin/activate
  3. Install the dependencies:

    (venv)$ pip install -r requirements.txt
  4. Configure Tailwind CSS:

    (venv)$ tailwindcss
  5. Scan the emplates and generate CSS file:

    (venv)$ tailwindcss -i ./static/src/main.css -o ./static/src/output.css --minify
  6. Apply the migrations and run the Django development server:

    (venv)$ python manage.py migrate
    (venv)$ python manage.py runserver
  7. Test at http://localhost:8000/