mmcardle/django_builder
关于
Django Builder 网站
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Django Builder
| 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/
Project setup
This repo uses Bun as its package manager and task runner (Vite remains the bundler/dev-server). Install dependencies with:
bun install
CLI interface
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
firebase-tools ships as a dev dependency, so run the Firebase CLI through Bun:
bunx firebase login
Setup Firebase Environment
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
Compiles and minifies for different modes
bun run build_development
bun run build_production
Initial setup
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
Run the whole site locally
make serve_site
Serves djangobuilder5 at http://localhost:8082/, the legacy app at /legacy/ and
djangobuilder4 at /db4/ on the Firebase hosting emulator.
Deploy
make deploy name=development
See docs/deployment.md for the layout and the cut-over checklist.
Run unit tests
bun run test_io
Lints and fixes files
bun run lint
Firebase get indexes
Useful after creating an index
bunx firebase firestore:indexes
Firebase use project
bunx firebase use development
bunx firebase use production
Customize configuration
探索相关项目
加载中…