This guide covers running Baserow’s backend and frontend natively on your machine, using Docker only for infrastructure services (PostgreSQL, Redis). This approach offers faster iteration, easier debugging, and better IDE integration compared to full Docker development.
Docker - For running PostgreSQL, Redis, and other services
just - Command runner
# macOS
brew install just
# Linux
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to ~/.local/bin
Python 3.14 - For the backend
# macOS
brew install python@3.14
# Linux (Ubuntu/Debian)
sudo apt install python3.14 python3.14-dev
uv - Fast Python package manager
# macOS
brew install uv
# Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
Node.js 24.15 or later (24.x) - For the frontend
# Using nvm (recommended)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm install 24
nvm use 24
# macOS with Homebrew
brew install node@24
Older 24.x versions fail yarn install with The engine "node" is incompatible with this module; run nvm install 24 again (or brew upgrade node@24) to get
the latest 24.x. nvm keeps global packages per Node version, so run
npm install -g yarn again after switching.
Yarn - Frontend package manager
npm install -g yarn
Git - Install from https://git-scm.com/downloads
See supported.md for minimum version requirements.
docker -v
just --version
python3 --version
uv --version
node -v
yarn -v
git --version
# Clone the repository
git clone --branch develop https://github.com/baserow/baserow.git
cd baserow
# Initialize backend and frontend (creates venv, installs deps, creates .env.local)
just init
# Start everything (Ctrl+C to stop)
just dev up
Once started, access:
To run in background:
just dev up -d # Start in background
just dev logs # View logs
just dev ps # Check what's running
just dev stop # Stop all services
just dev tmux # Alternative: start tmux session with all services (you need to install tmux first)
The just dev up command orchestrates:
just dev up
├── Docker: db, redis, mailhog, otel-collector
├── Backend: Django dev server (port 8000)
├── Celery: one worker for every queue, with beat
└── Frontend: Nuxt dev server (port 3000)
All processes log to /tmp/:
/tmp/baserow-backend.log/tmp/baserow-celery.log/tmp/baserow-web-frontend.logThe just init command creates .env.local in the project root with sensible defaults, taken from .env.local-dev.example:
# Key settings in .env.local
DATABASE_HOST=localhost
DATABASE_PORT=5432
REDIS_HOST=localhost
REDIS_PORT=6379
SECRET_KEY=<auto-generated>
DJANGO_SETTINGS_MODULE=baserow.config.settings.dev
SYNC_TEMPLATES_ON_STARTUP=false
All backend commands automatically load this file.
Look at Configuration to customize your environment.
Shortcuts: b = backend, f = frontend
All backend commands can be run from the project root with just backend (or just b) or from backend/:
# From project root (just b is shorthand for just backend)
just b test # Run tests
just b lint # Run linters
just b fix # Auto-fix code style
just b shell_plus # Django shell_plus with SQL logging
just b m makemigrations # Create migrations
just b m migrate # Apply migrations
# From backend/
cd backend
just test
just lint
just shell_plus
# From project root (just f is shorthand for just frontend)
just f lint # Run ESLint + Stylelint
just f test # Run Vitest tests
just f fix # Auto-fix code style
# From web-frontend/
cd web-frontend
just lint
just test
Works like docker compose logs - services and options can be in any order:
just dev logs # All services (backend, celery, frontend)
just dev logs -f # Follow all logs in real-time
just dev logs backend # Backend only
just dev logs backend celery # Backend and celery
just dev logs -f backend # Follow backend only
just dev logs backend -n 100 # Last 100 lines of backend
just dev logs -n 50 backend celery # Last 50 lines of backend and celery
# Start only database and redis
just dc-dev up -d db redis
# Stop Docker services
just dc-dev stop db redis
# View Docker service logs
just dc-dev logs db
If you prefer more control over each component:
just dc-dev up -d db redis mailhog
cd backend
just init # Creates venv, installs deps
just migrate # Apply migrations
cd backend
just run-dev-server
cd backend
just run-dev-celery
cd web-frontend
just install # Install node_modules
just run-dev-server # Start Nuxt dev server
# Run all tests
just b test
# Run tests in parallel (faster)
just b test -n=auto
# Run specific test file
just b test tests/baserow/core/test_core_models.py
# Run with coverage
just b test-coverage
For 2-5x faster tests, use a PostgreSQL container with tmpfs:
# Start ramdisk database (port 5433)
just test-db start
# Run tests against it
DATABASE_URL=postgres://baserow:baserow@localhost:5433/baserow just b test -n=auto
# Stop when done
just test-db stop
just f test # Run Vitest tests
just f yarn test:core # Watch mode (core tests; also test:premium, test:enterprise)
just b migrate
# or
just b m migrate
just b m makemigrations
just b m makemigrations core # Specific app
just b m createsuperuser
Templates (example databases, forms, etc.) are not synced by default for faster startup:
just b m sync_templates
# Django database shell
just b m dbshell
# Direct PostgreSQL (via Docker)
just dc-dev exec db psql -U baserow
# Stop Docker, remove volumes, restart
just dc-dev down -v
just dc-dev up -d db redis
just b migrate
The Django dev server supports standard Python debugging:
# Add breakpoint in your code
breakpoint() # or: import pdb; pdb.set_trace()
For VS Code, add to .vscode/launch.json:
{
"name": "Django Backend",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/backend/src/baserow/manage.py",
"args": ["runserver", "0.0.0.0:8000"],
"django": true,
"env": {
"DJANGO_SETTINGS_MODULE": "baserow.config.settings.dev"
},
"envFile": "${workspaceFolder}/.env.local"
}
# Run with debug logging
CELERY_LOG_LEVEL=DEBUG just b run-dev-celery
just b uv sync
just f yarn
# Ensure Docker services are running
just dc-dev ps
# Check if PostgreSQL is ready
just dc-dev exec db pg_isready -U baserow
# Verify .env.local settings
grep DATABASE .env.local
# Find what's using the port
lsof -i :8000
lsof -i :3000
# Kill the process or change the port
kill -9 $(lsof -i :8000 | awk 'NR==2 {print $2}')
kill -9 $(lsof -i :3000 | awk 'NR==2 {print $2}')
For the rollout decision and the contract for new tasks, see ADR 018.
The dev worker runs concurrent tasks in one Python process. Threads share the
memory used to load Django and let other tasks run while one waits for I/O.
They also avoid fork crashes on macOS. With prefork, each task slot has its
own child process. Celery can kill and replace that child at the hard time limit.
Python cannot safely kill one thread. An exception injected while the thread
holds a lock can leave other tasks blocked, and killing the process interrupts
every task in it.
On Baserow’s threads pool, a soft limit raises SoftTimeLimitExceeded at the
task thread’s next ordinary Django query. At the hard limit, the watchdog also
asks PostgreSQL to cancel any query running on that thread’s connections. The
cancelled query or the next ordinary query raises TimeLimitExceeded. The
exception is delivered once so cleanup can still use the database. A task
blocked on a socket, computing in Python, or catching the exception can keep
its slot past the deadline. After 60 more seconds the watchdog records
overdue in baserow.celery.task.time_limit and reports the task to Sentry
when configured. The slot becomes available when the task exits.
Give blocking calls their own timeouts and check a deadline between batches of long-running work. A WebSocket disconnect task can do its entire job in Redis, so its socket timeout matters even if it never queries PostgreSQL. Threads share CPU and the process memory limit too. CPU-heavy Python work competes with other tasks, and a process crash loses every task running in that worker. Use prefork when a task requires forced termination or process isolation. With either pool, a timeout can leave committed writes and external requests in effect.
Use solo to run one task at a time, for example with breakpoints:
CELERY_POOL=solo just b run-dev-celery
# Clear node_modules and reinstall
rm -rf web-frontend/node_modules
just f install
# Clear Nuxt cache
rm -rf web-frontend/.nuxt