npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

create-django-vue-app

v1.1.6

Published

Scaffold a production-ready Django + Vue.js full-stack application

Readme

Django + Vue.js Project Generator

PyPI version npm version License: MIT

A CLI tool to scaffold production-ready Django + Vue.js full-stack applications with authentication, Docker, and CI/CD out of the box.

Features

  • Django Backend: DRF, JWT authentication, custom user model, PostgreSQL
  • Vue.js Frontend: Vue 3, Vite, Pinia, Vue Router with guards
  • Complete Auth System: Login, register, password reset, profile management
  • Todo CRUD Example: Full working example with create, read, update, delete
  • Docker Ready: Development and production Docker Compose configurations
  • CI/CD Pipeline: GitHub Actions with lint, test, and build stages
  • Code Quality: Pre-commit hooks with Black, Ruff, ESLint, Prettier
  • Celery + Redis: Background task processing (optional)
  • Production Ready: Nginx, Gunicorn, WhiteNoise for static files

Prerequisites

Before you start, ensure you have the following installed on your machine:

| Component | Required Version | Purpose | Check Command | |-----------|------------------|---------|---------------| | Python | 3.10+ | Backend runtime | python3 --version | | Node.js | 18+ | Frontend runtime | node --version | | npm | 9+ | Package manager | npm --version | | Git | Latest | Version control | git --version |

Installation Instructions

Python 3.10+:

  • macOS: brew install [email protected] or download from python.org
  • Ubuntu/Debian: sudo apt update && sudo apt install python3.11 python3.11-venv python3-pip
  • Windows: Download from python.org (check "Add to PATH")

Node.js 18+ & npm:

  • macOS: brew install node or use nvm
  • Ubuntu/Debian: curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt install -y nodejs
  • Windows: Download from nodejs.org

Git:

  • macOS: brew install git (or comes with Xcode)
  • Ubuntu/Debian: sudo apt install git
  • Windows: Download from git-scm.com

Optional (for Docker mode)

To run the project in Docker containers (recommended for production parity):

[!NOTE] If you don't have these tools, django-vue-start will warn you or attempt to handle dependencies (like creating a virtualenv) automatically where possible.

Quick Start

Method 1: Using npx (Recommended)

npx create-django-vue-app my_project
cd my_project
django-vue-start run dev

Method 2: Using pip

# Install the CLI tool
pip install django-vue-start

# Create a new project
django-vue-start new my_project

# Navigate and run
cd my_project
django-vue-start run dev

Method 3: Install npm package globally

npm install -g create-django-vue-app
create-django-vue-app my_project

Running Your Project

After creating a project:

cd my_project

# Start development servers (Django + Vue)
django-vue-start run dev

# Or with Docker
django-vue-start run dev --docker

Access your app:

  • Frontend: http://localhost:5173
  • Backend API: http://localhost:8000/api/
  • API Docs: http://localhost:8000/api/schema/swagger-ui/
  • Django Admin: http://localhost:8000/admin/

CLI Commands

# Create new project
django-vue-start new [project_name]

# Run development servers
django-vue-start run dev          # Local mode (SQLite)
django-vue-start run dev --docker # Docker mode (PostgreSQL)

# Run migrations
django-vue-start run migrate

# Run migrations
django-vue-start run migrate

# Open Django shell
django-vue-start run shell

# Create Superuser (Admin)
cd backend
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
python manage.py createsuperuser

Project Generation Options

django-vue-start new [OPTIONS]

Options:
  --database [postgresql|sqlite|mysql]  Database backend
  --auth [jwt|session]                  Authentication type
  --celery / --no-celery                Include Celery
  --allauth / --no-allauth              Include social auth
  --skip-prompts                        Use defaults

Generated Project Structure

my_project/
├── backend/
│   ├── config/settings/     # Django settings
│   ├── core/                # Custom User model
│   ├── todos/               # CRUD example app
│   ├── .env                 # Environment variables
│   ├── Dockerfile
│   └── requirements.txt
├── frontend/
│   ├── src/
│   │   ├── api/             # Axios with JWT
│   │   ├── components/      # AppHeader, AppFooter
│   │   ├── router/          # Vue Router
│   │   ├── stores/          # Pinia auth store
│   │   └── views/           # Pages (Login, Profile, Todos)
│   └── package.json
├── docker-compose.yml
└── README.md

Built-in Features

Authentication

  • User registration with email
  • Login/logout with JWT cookies
  • Profile editing (username, email)
  • Password change
  • Password reset via email

Todo CRUD Example

  • Create, read, update, delete todos
  • Toggle complete/incomplete
  • User-scoped (each user sees only their todos)

Documentation

Development

Setup for Contributors

# Clone
git clone https://github.com/abdullafajal/django-vue-start.git
cd django-vue-start

# Install
pip install -e .

# Test
pytest tests/ -v

Publishing

PyPI

pip install build twine
python -m build
twine upload dist/*

npm

npm publish --otp=YOUR_2FA_CODE

License

MIT License - see LICENSE file.

Credits