# Building
URL: https://usememos.com/docs/development/building

Memos combines a frontend build with a backend binary. Local build work should confirm both pieces still fit together.

## Typical build sequence [#typical-build-sequence]

```bash
cd web
pnpm install
pnpm release
cd ..
go build -o build/memos ./cmd/memos
```

## What to verify [#what-to-verify]

* the frontend build completes cleanly
* the backend binary starts
* local configuration still works with your chosen database
* any generated assets or code are up to date

## Common variants [#common-variants]

* use `go build -o memos ./cmd/memos` for quick local builds
* use versioned linker flags for release-oriented builds
* cross-compile only when you actually need alternate target binaries
