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.3.tar.gz (11.4 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.3-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: djb-0.1.3.tar.gz
  • Upload date:
  • Size: 11.4 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.3.tar.gz
Algorithm Hash digest
SHA256 d7eac9cc2242ec73fc733a90e9940cc297351d0d27dd48296e6736bd249661fd
MD5 5a9463b6eb15f1ba4f21ded199860b78
BLAKE2b-256 346ca64ac22907f7de9d0213b94539776861e2feeecc8580b0e772f67d1ea29b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: djb-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 13.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 40b3fcf2d680d55241d0f94b649ca947e07b8efb1ff85f5790a59f8cf22011f0
MD5 0b5161db483070431f5b4ea69ae55185
BLAKE2b-256 51a67187749baffc0c2f45e3936452aa594fb4ac803b45a10b55fbc140c4f936

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