AppFlowy is an open-source alternative to Notion. You are in charge of your data and customizations. Built with Flutter and Rust.
Find a file
Nathan.fooo 18e950a829
feat: ws connect (#3)
* chore: ws

* chore: build client stream

* feat: test ws connect

* ci: fix ci
2023-05-08 19:03:50 +08:00
.github ci: fix audit 2023-03-16 21:33:11 +08:00
build fix: redis connect (#2) 2023-05-05 00:00:02 +08:00
cert fix: request fail caused by certificate issue 2023-03-15 09:32:23 +08:00
configuration feat: ws connect (#3) 2023-05-08 19:03:50 +08:00
crates feat: ws connect (#3) 2023-05-08 19:03:50 +08:00
migrations refactor: use i64 as user id 2023-03-16 11:23:42 +08:00
src feat: ws connect (#3) 2023-05-08 19:03:50 +08:00
tests feat: ws connect (#3) 2023-05-08 19:03:50 +08:00
.dockerignore fix: redis connect (#2) 2023-05-05 00:00:02 +08:00
.env fix: redis connect (#2) 2023-05-05 00:00:02 +08:00
.gitignore feat: ws connect (#3) 2023-05-08 19:03:50 +08:00
Cargo.lock feat: ws connect (#3) 2023-05-08 19:03:50 +08:00
Cargo.toml feat: ws connect (#3) 2023-05-08 19:03:50 +08:00
docker-compose.yml fix: redis connect (#2) 2023-05-05 00:00:02 +08:00
Dockerfile fix: redis connect (#2) 2023-05-05 00:00:02 +08:00
Makefile fix: redis connect (#2) 2023-05-05 00:00:02 +08:00
README.md chore: disable zld linker 2023-05-05 09:13:05 +08:00
rustfmt.toml feat: ws connect (#3) 2023-05-08 19:03:50 +08:00
sqlx-data.json feat: add document test 2023-03-16 21:01:36 +08:00

Pre-requisites

You'll need to install:

Here are the Os-specific requirements:

Windows

cargo install -f cargo-binutils
rustup component add llvm-tools-preview
cargo install --version="~0.6" sqlx-cli --no-default-features --features rustls,postgres

Linux

# Ubuntu 
sudo apt-get install libssl-dev postgresql-client
# Arch 
sudo pacman -S postgresql
cargo install --version="~0.6" sqlx-cli --no-default-features --features rustls,postgres

MacOS

cargo install --version="~0.6" sqlx-cli --no-default-features --features rustls,postgres

How to build

Run the init_db.sh to create a Postgres database container in Docker:

./scripts/init_db.sh

Run the init_redis.sh to create a Redis container in Docker:

./scripts/init_redis.sh

Build the project:

cargo build

or you can try to run the tests in your local machine:

cargo test