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.1.tar.gz (11.1 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.1-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: djb-0.1.1.tar.gz
  • Upload date:
  • Size: 11.1 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.1.tar.gz
Algorithm Hash digest
SHA256 49fda609811934826ff197b2bbfbc76be2d58415dd2d82acc44523d6b1027f89
MD5 fabfaedc7ad9aba2e0fce67edc14712e
BLAKE2b-256 3a641a57d8221a3ba3714305354a4a388fa8356257a466095166677874439d8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: djb-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11a2e4fd2a78a19e8953947644e61676e5c050219f563e7fccca31ada2ba99cb
MD5 f7a9fcf67a81ec719d50eb19449e0d41
BLAKE2b-256 ac351864e7dff08710e051bdccd37ef6e89cc28630ba6341556a37a9be1d10ea

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