djb (dj_bun): playin' dev and deploy since 1984 🎶
Project description
Welcome to djb!
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-urlto 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file djb-0.1.2.tar.gz.
File metadata
- Download URL: djb-0.1.2.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91e8d7db10af2638af4dc456cc20fcb21bfe7823fe0b0bc0c44f1c265ac3499b
|
|
| MD5 |
cbf744c6fef84e10230ab6d3156da974
|
|
| BLAKE2b-256 |
fbe41cec1fcb54d07442088d8d4800b3aabfb9955aea0c716846cb72a27ccb00
|
File details
Details for the file djb-0.1.2-py3-none-any.whl.
File metadata
- Download URL: djb-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
984ee40187307a74548dac2e3f463b198f3ce3b5d52fb2c6d4d84d6a7cd6bc6c
|
|
| MD5 |
ecd42157aaccba0b5db1d4800d75611b
|
|
| BLAKE2b-256 |
fc45e61030ea45fa0c80a15a1ebb775e214dbd89212724de96e9fe33917dcb6c
|