Django Beefree SDK Demo
A demo of Beefree SDK embedded within a Django application.
Introduction
Quick start (clone and run)
# 1) Clone
git clone https://github.com/BeefreeSDK/beefree-django-app-demo.git
cd beefree-django-app-demo
# 2) Create venv and install Python deps
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# 3) Install Node.js dependencies and build frontend
npm install
npm install @beefree.io/sdk
npm run build
# 4) Configure environment (recommended: .env at project root)
# Create .env with your credentials
cat > .env << 'EOF'
DJANGO_SECRET_KEY=change-me
DJANGO_DEBUG=1
DJANGO_ALLOWED_HOSTS=*
BEE_CLIENT_ID=YOUR-CLIENT-ID
BEE_CLIENT_SECRET=YOUR-CLIENT-SECRET
EOF
# 5) Migrate and run (default host/port)
python manage.py migrate
python manage.py runserver
# Optional: run on a custom host/port
# (set DJANGO_ALLOWED_HOSTS accordingly, e.g., to your domain or IP)
# python manage.py runserver 9000
# python manage.py runserver 0.0.0.0:8080Alternative: Using Makefile and build script
Development
How it works
High‑level
Django pieces
Frontend pieces
Build process
Template initialization
Django architecture (explanation)
Best practices for Beefree SDK in Django
How a JS SDK works in Django
File map
Troubleshooting
Last updated
Was this helpful?

