Skip to content

Quickstart

This walkthrough runs everything on your machine. For a real deployment, follow Deploy to production instead.

You need Docker with Docker Compose.

Terminal window
git clone https://github.com/patchkite/patchkite.git
cd patchkite/docker
docker compose --profile full up -d --build

This starts PostgreSQL, RustFS (S3-compatible storage), and the Patchkite server at http://localhost:3000. The dashboard is at http://localhost:3000/web/.

Terminal window
npm install -g @patchkite/cli
patchkite register http://localhost:3000

The first account on a server automatically becomes an admin. Later, you can log in again with patchkite login http://localhost:3000.

Create one Patchkite app per platform:

Terminal window
patchkite app add MyApp-Android android react-native # or: flutter
patchkite deployment ls MyApp-Android -k # shows the Staging and Production keys

Follow the guide for your framework, using the Staging key and your server URL:

Build and install a release build of the app. Debug builds load code from Metro or the Flutter tool, not from Patchkite.

Change some visible text in your app, then:

Terminal window
patchkite release-react MyApp-Android android --description "My first update"
# Flutter: patchkite release-flutter MyApp-Android android --description "My first update"

Open the app, close it completely, and open it again. The default install mode applies updates on the next restart, so you should now see your change. The release also shows up as installed in the dashboard.