Skip to main content
This guide will help you set up your development environment for building and running AppFlowy from source.

Prerequisites

Flutter SDK

Version 3.13.19 or higher

Rust Toolchain

Version 1.70 or higher

Git

For cloning the repository

Build Tools

Platform-specific compilers and SDKs

Installing Flutter

1

Download Flutter SDK

Download the Flutter SDK from the official website:
2

Verify installation

The output should show Flutter 3.13.19 or higher.
3

Install required Flutter dependencies

Installing Rust

1

Install rustup

2

Verify installation

You should see Rust 1.70 or higher.
3

Install required Rust components

Installing cargo-make

AppFlowy uses cargo-make for build automation:
Verify installation:

Platform-Specific Setup

macOS Requirements

1

Install Xcode

Install Xcode from the App Store or download from developer.apple.com.
2

Install Homebrew

3

Install dependencies

Clone the Repository

1

Clone AppFlowy

2

Navigate to frontend

Repository Structure

Understanding the repository layout:
All build commands should be run from the frontend/ directory.

Verify Setup

1

Check Flutter

Ensure all required components are installed.
2

Check Rust

3

Install Flutter dependencies

IDE Setup

Visual Studio Code

Install recommended extensions:
Open the workspace:

Build Tools

Protobuf

AppFlowy uses Protocol Buffers for serialization:
If not installed:

Next Steps

Now that your environment is set up, you can build AppFlowy:

Building Desktop

Build AppFlowy for macOS, Windows, or Linux

Building Mobile

Build AppFlowy for iOS or Android

Architecture

Learn about AppFlowy’s architecture

Contributing

Start contributing to AppFlowy

Troubleshooting

If you encounter issues during setup, check the following:

Common Issues

Flutter doctor shows issues:
For more help, join the AppFlowy Discord community.