Skip to content

Nextjango is a full-stack CLI tool that scaffolds a modern Next.js + Django project—fully wired, type-safe, and built for developers who move fast.

License

Notifications You must be signed in to change notification settings

sylkenio/nextjango

Nextjango Banner

⚡ Nextjango (LIVE!)

npm

Scaffold modern full-stack apps with Next.js + Django — instantly.

Nextjango is a blazing-fast CLI tool that jumpstarts your full-stack development by scaffolding a modern frontend with Next.js and a powerful backend using Django. Built for developers who want flexibility, security, and complete control — without wasting time on boilerplate.

🚀 Features

  • ✅ Generate a full-stack project with Next.js + Django in seconds
  • 🧱 Built-in support for TypeScript, Tailwind CSS, and SQLite (default; support for other databases is planned)
  • 🔒 Secure backend with Django and admin path obfuscation
  • 🔗 API-ready and configurable for REST or GraphQL (coming soon)
  • 🧪 Developer-first architecture with batteries included, but replaceable
  • 🧰 Easily extendable with custom page and model generators

🐍 Optional Python requirement

Python 3 is optional but needed for the Django backend and for running the Python-dependent test suites. When Python isn't installed, those tests will automatically be skipped.

📦 Installation

Install Nextjango globally (optional):

npm install -g nextjango

🛠️ Usage

Initialize Nextjango in a project directory:

npx nextjango init

🧙 The CLI will guide you to select a package manager with the arrow keys if none is found.

You can also specify one manually:

npx nextjango init --package-manager pnpm

🧑‍💻 Development

Start both backend and frontend dev servers together:

npm run dev

Feature not yet implemented (will be in a few days)

Create a full-stack page (auto-wired front to back):

npx nextjango create-page about

🏷️ Alias Setup

You can use the installed alias "nj" instead of nextjango:

{
  "scripts": {
    "nj": "nextjango"
  }
}

Now you can run:

pnpm nj create-page about

Or with npm (your choice):

npm run nj -- create-page about

Project Structure:

my-app/
├── frontend/         # Next.js + Tailwind + App Router
│   └── ...
├── backend/          # Django + REST-ready setup
│   └── ...
└── shared/           # Common types, constants, or utils (optional)

About

Nextjango is a full-stack CLI tool that scaffolds a modern Next.js + Django project—fully wired, type-safe, and built for developers who move fast.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •