Skip to main content

djb (dj_bun): playin' dev and deploy since 1984 🎶

Project description

Welcome to djb!

djb mascot

djb combines a Django ASGI server with a Vite+Vue frontend server running on the Bun JavaScript runtime. Here's how it works:

  • Django prepares data and requests HTML pages from the frontend server via gRPC.
  • Frontend Server renders and returns HTML, and prepares a JS bundle.
  • Browser uses the JS bundle to make the page interactive.

When your project is ready to share, djb also provides tools for deployment, making production as familiar and easy as local development.

Create a djb Project

Quickly create a new djb project with a single command:

source <(curl -LsSf https://create.djb.sh)

Create a djb Project (Step-by-Step)

Prefer a manual setup? Follow these steps to create a djb project— equivalent to the one-liner above.

Install djb using pipx:

pipx install djb

Create a new project:

djb create

Navigate to your project directory.

cd project_dir

Set up your development environment and dependencies.

djb up && source .djbrc

Optionally Install djb in Editable Mode

Need to modify djb for your project or contribute improvements? Install djb in editable mode:

djb install editable-djb [--djb-repo-url TEXT]
  • Default Behavior: Clones the official djb repository and installs it in editable mode.
  • Custom Repository: Use --djb-repo-url to specify an alternative repository, such as your fork.

Acknowledgements

This project builds on the capabilities of many open-source tools and platforms, including Django, Vite, Vue, Bun, Kubernetes, PostgreSQL, and more. Trademarks mentioned here belong to their respective owners.

Disclaimer

djb is an independent project and is not affiliated with or endorsed by Django Software Foundation, Vite, Kubernetes, Bun, or any other organizations mentioned.

License

djb is licensed under the MIT License. See the LICENSE file for details.

Mascot Attribution

The djb mascot (dj_bun) was created for this project and is distributed under CC BY-SA 4.0.



/dj_bun: playin' dev and deploy since 1984 🎶

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

djb-0.1.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

djb-0.1.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file djb-0.1.0.tar.gz.

File metadata

  • Download URL: djb-0.1.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for djb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 51f907159d7000eef2a94c289dd243e5be768b4ab9ad6348f0d70d61ddf140ef
MD5 7bcb35415dc83ef805799ab9af01e2fc
BLAKE2b-256 c392caf42fee8f021861cb13d1fadcf74db94b7e2cd74b1027a297202181b58c

See more details on using hashes here.

File details

Details for the file djb-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: djb-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for djb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18c6548b715792e44a5b417f65a1dc49b34ff78b1b05e0ca4486133a89b36bbf
MD5 6bc9da7e20cb9c51eebf8e065c3e0d1b
BLAKE2b-256 b4a971be1a1a90c6132637eabfe4b2cb33679fb86dbe4f68cd2a11851f4bba5c

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