git clone https://github.com/AppFlowy-IO/appflowy.git
Note:
Install prerequisites
sudo apt-get install curl build-essential libsqlite3-dev libssl-dev clang cmake ninja-build pkg-config libgtk-3-dev unzip
# optional, for generating protobuf in step 8 only
sudo apt-get install protobuf-compiler
shell
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustup toolchain install nightly
rustup default nightly
env settings
cp backend/configuration/base.example.yaml backend/configuration/base.yaml
cp backend/configuration/.env.example backend/configuration/.env
modify those file
shell
git clone https://github.com/flutter/flutter.git
cd flutter
echo "export PATH=\$PATH:"`pwd`"/bin" >> ~/.profile
export PATH="$PATH:`pwd`/bin"
flutter channel dev
flutter config --enable-linux-desktop
Fix problem reported by flutter doctor
flutter doctor
shell
cd appflowy/frontend
cargo install --force cargo-make
Install duckscript
cargo install --force duckscript_cli
shell
cargo make flowy_dev
[Optional] Generate protobuf for dart (optional, if you modify the shared-lib's entities)
cargo make -p development-linux-x86 pb
# for development
cargo make --profile development-linux-x86 flowy-sdk-dev
# for production
cargo make --profile production-linux-x86 flowy-sdk-release
Build app_flowy ```shell
cargo make -p development-linux-x86 appflowy-linux-dev
cargo make -p production-linux-x86 appflowy-linux
```
Note: You can launch postgresql server by using docker container
TBD