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

    • py -m react_django

    • pytho3 -m react_django (Linux/macOS)

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.2.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.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: react_django-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 f5ac4aaf1b85ccee9e1dbea9c1e68257e45cc2289e8540f7ba3849b5a4f78595
MD5 52d00727c05d674ae0ed8d6424224482
BLAKE2b-256 b85452b14191e4698df1f80fa08e512e1e518cb2f94c2934bfc9d237c18e8075

See more details on using hashes here.

File details

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

File metadata

  • Download URL: react_django-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a1f46402bfb02905a3d009864949c1a0ba0bf43b6b2445507a7bb3054a515446
MD5 ad9752ea0dc8b51bb627c96b1922d98c
BLAKE2b-256 2f44d56bf12a60b28b103879c2ca8b206629020d4341f26c0b16329c3ed87605

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