mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
* create backend justfile; switch to uv * Add deploy and dc-deploy recipes to build images * Add uv.lock for reproducible builds * CI fixes + improvements * Reduce build time * improve CI caching * Improve exit early conditions * Set requires_python==3.11.*; add backend/media to gitignore * Fix all-in-one Dockerfiles and some other fixes * Introduce frontend justfile + some other useful recipes * Fix permissions issue with dev containers * Improve dockerfiles and docs on how to use the dev env * Fix mjml-email-compiler service * Update docs + address feedback * Fix containers healthchecks * Fix yarn test in dev container * Minor fixes to docs and justfile attach command * Address Petr's feedback * Address additional feedback * Add changelog entry * Address feedback: Petr and Przemek * address feedback + prepare for saas PR * minor fixes * Address Bram's feedback 2
63 lines
2.6 KiB
Markdown
63 lines
2.6 KiB
Markdown
# Baserow's Dev Environment
|
|
|
|
The dev environment runs Baserow services with source code hot reloading enabled. It
|
|
also runs the backend django server and web-frontend nuxt server in debug and
|
|
development modes.
|
|
|
|
## Getting Started
|
|
|
|
Baserow offers two development approaches. Choose based on your priorities:
|
|
|
|
| Approach | Guide |
|
|
|----------|-------|
|
|
| **Docker** | [Running with Docker](running-the-dev-env-with-docker.md) |
|
|
| **Local** | [Running Locally](running-the-dev-env-locally.md) |
|
|
|
|
## Which Should I Use?
|
|
|
|
### Use Docker if you want:
|
|
|
|
- **Quick start** - Only requires Docker and `just`, no language runtimes to install
|
|
- **Consistency** - Identical environment across all machines and OSes
|
|
- **Isolation** - Dependencies contained in images, won't conflict with other projects
|
|
- **Security** - Code runs in sandboxed containers
|
|
|
|
### Use Local development if you want:
|
|
|
|
- **Speed** - Faster startup, instant hot reload, no container overhead
|
|
- **Lower resources** - No Docker daemon or container memory overhead
|
|
- **Better debugging** - Direct IDE integration, native breakpoints, no remote debugging setup
|
|
- **Simpler tooling** - Standard Python/Node workflows you already know
|
|
|
|
Both approaches use the same `just` commands and can be switched between freely.
|
|
|
|
## Quick Start
|
|
|
|
- **Docker development**: `just dc-dev up -d` - runs all services in Docker containers
|
|
- **Local development**: `just dev` - runs services natively with Docker only for db/redis
|
|
|
|
## Further Reading
|
|
|
|
- [Running with Docker](running-the-dev-env-with-docker.md) - Complete Docker setup and commands
|
|
- [Running Locally](running-the-dev-env-locally.md) - Complete local development setup
|
|
- [justfile reference](justfile.md) - All available `just` commands
|
|
- [Running tests](running-tests.md) - Testing guide
|
|
- [IntelliJ setup](intellij-setup.md) - Configure IntelliJ for Baserow development
|
|
- [VS Code setup](vscode-setup.md) - Configure VS Code for Baserow development
|
|
- [Feature flags](feature-flags.md) - Optionally enabling unfinished features
|
|
- [Baserow Docker API](../installation/install-with-docker.md) - Docker setup configuration
|
|
|
|
> **Note**: The older `dev.sh` script is deprecated. See [dev.sh](dev_sh.md) for
|
|
> documentation on the legacy script if needed.
|
|
|
|
## Fixing git blame
|
|
|
|
A large formatting only commit was made to the repo when we converted to use the black
|
|
auto-formatter on April, 12 2021. If you don't want to see this commit in git blame, you
|
|
can run the command below to get your local git to ignore that commit in blame for this
|
|
repo:
|
|
|
|
```bash
|
|
$ git config blame.ignoreRevsFile .git-blame-ignore-revs
|
|
```
|