| Environment | URL |
|---|---|
| Production | https://djangobuilder.io |
| Staging | https://staging.djangobuilder.io |
| Development | https://dev.djangobuilder.io |
These are the only valid URLs for each environment; see docs/deployment.md.
The original Django Builder v1 is deployed at:
http://mmcardle.github.io/django_builder/
This repo uses Bun as its package manager and task runner (Vite remains the bundler/dev-server). Install dependencies with:
bun install
You can create and run a basic Django project from the command line
./bin/django-builder example-project.json DjangoProject.tar
tar -xvf DjangoProject.tar
cd DjangoProject
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
Head to http://127.0.0.1:8000
firebase-tools ships as a dev dependency, so run the Firebase CLI through Bun:
bunx firebase login
Django Builder uses a Firebase backend. Copy the example env file
cp .env.example .env.development.local
Edit this file with your firebase setup and run the development server.
bun run dev
bun run build_development
bun run build_production
When a fresh checkout is done aliases must be setup for each project, e.g. development
bunx firebase use --add
Follow the instructions to link to your Firebase application, choose the alias 'development' and your firebase project
make serve_site
Serves djangobuilder5 at http://localhost:8082/, the legacy app at /legacy/ and
djangobuilder4 at /db4/ on the Firebase hosting emulator.
make deploy name=development
See docs/deployment.md for the layout and the cut-over checklist.
bun run test_io
bun run lint
Useful after creating an index
bunx firebase firestore:indexes
bunx firebase use development
bunx firebase use production