Local Development
Prerequisites
- Go
1.26.x - Node.js
20.19+or22.12+ - npm
- Docker (for Postgres + Redis during local dev)
The application components are maintained in separate repositories:
magpie-backend: Go1.26magpie-frontend: Angular21.1, PrimeNG21, Tailwind CSS4magpie-docs: Docusaurus on Node.js20+
Clone the repositories as siblings so commands and tooling have a predictable workspace:
mkdir magpie-workspace
cd magpie-workspace
git clone https://github.com/Magpie-Tools/magpie.git
git clone https://github.com/Magpie-Tools/magpie-backend.git
git clone https://github.com/Magpie-Tools/magpie-frontend.git
git clone https://github.com/Magpie-Tools/magpie-website.git
git clone https://github.com/Magpie-Tools/magpie-docs.git
Start infrastructure
cd magpie
cp .env.example .env
# Set PROXY_ENCRYPTION_KEY in .env.
docker compose up -d postgres redis
Run backend
cd ../magpie-backend
go run ./cmd/magpie
Backend defaults to port 5656.
Run frontend
cd ../magpie-frontend
npm ci
npm run start
Frontend dev server defaults to http://localhost:4200.
Common dev commands
cd ../magpie-backend
go test ./...
cd ../magpie-frontend
npm test