Skip to main content

CLI to scaffold fullstack React + Django + Tailwind projects

Project description

Full-Stack Django + Vite + React + TailwindCSS Scaffold

  • Start Project:
    • Creating it Globally for Windows ---->

      • py -m pip install react-django
    • Creating it Globally for Linux/macOS: ---->

      • python3 -m pip install react-django
    • run this in your terminal

    • react_django

This project is a one-command scaffold for creating a fully integrated Django backend and Vite + React + TailwindCSS frontend inside a single repository.
It automatically configures development and production environments, including database settings, static files, and environment-based React/Django integration.


📦 Features

  • Frontend:

    • Vite with React
    • TailwindCSS styling
    • Auto-generated vite.config.js and index.css
    • Environment-aware server settings from config.json
    • Fonts and theme variables preconfigured
  • Backend:

    • Django REST API
    • Django REST Framework
    • CORS support via django-cors-headers
    • Token-based authentication
    • Whitenoise for static file serving
    • Environment-aware settings from config.json
    • SQLite (dev) / PostgreSQL (production)
  • Extras:

    • Single root directory for both frontend and backend
    • Auto-creation of config.json for easy environment switching
    • Django templates configured to serve Vite in dev and built static files in production

🛠 Requirements

Before running the script, make sure you have:

  • Python 3.8+
  • Node.js 18+ & npm
  • pip (comes with Python)
  • PostgreSQL (only needed in production)

🚀 Usage

1️⃣ Clone or Download

git clone https://github.com/ISAAC-EDZORDZI-FIAVOR/Django_React_Template
cd yourrepo


After running the script, you'll get a structure like:

    your-project/
    │── account/                  # Django app
    │── core/                     # Django project
    │── dist/                     # Built React files (production)
    │── env/                      # Python virtual environment
    │── media/                    # User-uploaded files
    │── node_modules/             # Frontend dependencies
    │── src/                      # React source code
    │── static/                   # Django static files (collected)
    │── template/                 # Django templates
    │── config.json               # Environment configuration
    │── requirements.txt          # Python dependencies
    │── vite.config.js            # Vite config linked to config.json
    │── manage.py
    │── package.json
    │── index.css

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

react_django-0.1.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

react_django-0.1.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file react_django-0.1.1.tar.gz.

File metadata

  • Download URL: react_django-0.1.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for react_django-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2b92e5b5b07533bca1707fdecbbb0fb81e5edaa28375d32ca23a81b106025d2a
MD5 9ecee670b056ab980183b09525ae82b6
BLAKE2b-256 96a6abacb52090c93d32eb9e65e4e7937e7e99278ae5e323e300f0d6a90c0144

See more details on using hashes here.

File details

Details for the file react_django-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: react_django-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for react_django-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5eab6b26e7ad2d099cf30d1968ae84244993e2e377a1889d324d6328c611946f
MD5 6d87cc50fce24ee5a7d86122c3712592
BLAKE2b-256 942ed876a3b29754899b25dec5175fbc2f7cd3264dcaedf53ea117e3fbcaba7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page