Skip to main content

A starter template for building full-stack web applications using Django (backend), React (frontend), and TailwindCSS. Comes pre-configured with REST API support, authentication, and ready-to-use development and production settings.

Project description

Full-Stack Django + React + TailwindCSS โšก

A one-command starter for a full-stack app with Django (backend) and React + TailwindCSS + Vite (frontend) โ€” all in a single repo. Auto-configures for development and production.

Windows:

  • py -m pip install django-react-cli
  • py -m django-react-cli

Linux

python3 -m pip install django-react-cli python3 -m django-react-cli

๐Ÿ“ฆ Features

Frontend

  • โšก Vite + React + TailwindCSS
  • ๐Ÿ› ๏ธ Auto-generated vite.config.js and index.css
  • ๐ŸŒ Env-based settings via config.json
  • ๐ŸŽจ Preconfigured fonts and theme

Backend

  • ๐Ÿ Django + Django REST Framework
  • ๐Ÿ” Token-based authentication
  • ๐ŸŒ CORS support via django-cors-headers
  • ๐Ÿ“ฆ Whitenoise for static file handling
  • ๐Ÿ—„๏ธ SQLite (development) / PostgreSQL (production)
  • ๐ŸŒ Env-based settings via config.json

Extras

  • ๐Ÿ“ Unified directory structure for frontend and backend
  • โš™๏ธ Auto-generated config.json for easy environment switching
  • ๐Ÿš€ Django templates serve Vite dev server in development and built static files in production

๐Ÿ›  Requirements

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

Project Structure

your-project/
โ”‚โ”€โ”€ account/          # Django app
โ”‚โ”€โ”€ core/             # Django project
โ”‚โ”€โ”€ src/              # React source
โ”‚โ”€โ”€ static/           # Collected static files
โ”‚โ”€โ”€ dist/             # React build (prod)
โ”‚โ”€โ”€ env/              # Python virtualenv
โ”‚โ”€โ”€ media/            # Uploaded files
โ”‚โ”€โ”€ template/         # Django templates
โ”‚โ”€โ”€ config.json
โ”‚โ”€โ”€ requirements.txt
โ”‚โ”€โ”€ vite.config.js
โ”‚โ”€โ”€ manage.py
โ”‚โ”€โ”€ package.json
โ”‚โ”€โ”€ index.css

License

django-react-cli is licensed under the MIT License.

Contacto

LinkedIn hugo aragon

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

django_react_cli-1.0.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

django_react_cli-1.0.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file django_react_cli-1.0.0.tar.gz.

File metadata

  • Download URL: django_react_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for django_react_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a44c46cd05acbc13e5c57276a8db14d02952552b5e2051929b0aed0101d8732f
MD5 154dc37cd144bf8e429edebec978159a
BLAKE2b-256 859664d9ac9ff463cb911fce4ede1ec7c744d1f97f11dad0c91bb4fe64fee6c5

See more details on using hashes here.

File details

Details for the file django_react_cli-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_react_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad4acf34ec1172c9712b75f75518a7a5e57e303192db85e00e8196761be7a6e2
MD5 d62c4b5800ff2f170e2ad55b1cdc320a
BLAKE2b-256 78046f87b3a84ba92f2dd6c4a7b0591589425e5d7fb31dd4ec5b74c3161f90f1

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