Go to file
Zack 37a759ead6
feat: Request Id (#144)
* feat: added basic monitoring stack

* docs(grafana): import steps and recommended imports

* feat(metric): api metrics

* feat(prometheus): add appflowy cloud metric scraping job

* fix: put back tracing logger

* feat: middleware for path counter

* feat: added gotrue to prometheus metrics

* feat: added nginx to prometheus metrics

* feat: added latency and result to metrics

* feat(nginx): set request id to header

* feat: added request id in nginx

* feat: simplify metric collection

* feat: added simple grafana dashboard for appflowy cloud

* feat(logging): added logging stack

* docs: improve monitoring docs

* docs: added known common issues

* feat: give persistence

* feat: add exemplars

* fix: docker compose volumes

* feat(grafana): add trace id to prometheus datasource

* feat(grafana): improve dashboard to include exemplars

* feat: request id middleware

* docs: move doc to more relevant place

* chore: clean up logs

* feat: try json fmt

* feat: remove pretty

* feat: logging use json in prod but pretty in local
2023-11-03 16:57:05 +08:00
.github feat: support discord and github (#136) 2023-10-24 13:05:24 +08:00
.sqlx feat: Integrate workspace member (#140) 2023-10-25 20:44:30 +08:00
admin_frontend refactor: Error (#143) 2023-11-02 17:17:34 +08:00
build refactor: file storage (#110) 2023-10-11 21:36:57 +08:00
cert fix: request fail caused by certificate issue 2023-03-15 09:32:23 +08:00
configuration feat: Gotrue admin api (#73) 2023-09-23 17:07:02 +08:00
doc feat: Request Id (#144) 2023-11-03 16:57:05 +08:00
docker feat: Metrics (#141) 2023-11-02 15:34:00 +08:00
libs fix: fix some bugs (#145) 2023-11-03 14:15:08 +08:00
migrations feat: insert uid instead of gen it from db (#139) 2023-10-25 12:18:33 +08:00
nginx feat: Metrics (#141) 2023-11-02 15:34:00 +08:00
src feat: Request Id (#144) 2023-11-03 16:57:05 +08:00
tests fix: fix some bugs (#145) 2023-11-03 14:15:08 +08:00
.dockerignore feat: use apply server migration when server starts (#30) 2023-09-12 15:12:08 +08:00
.gitignore Test deploy docker log (#105) 2023-10-08 21:42:25 +08:00
Cargo.lock fix: fix some bugs (#145) 2023-11-03 14:15:08 +08:00
Cargo.toml fix: fix some bugs (#145) 2023-11-03 14:15:08 +08:00
Dockerfile feat: Autorefresh (#44) 2023-09-15 11:21:05 +08:00
LICENSE chore: add license 2023-07-28 21:05:27 +08:00
Makefile chore: remove redundant sqlx command (#22) 2023-09-08 22:51:16 +08:00
README.md feat: Admin frontend/refactor (#130) 2023-10-22 12:02:16 +08:00
dev.env feat: Metrics (#141) 2023-11-02 15:34:00 +08:00
docker-compose-dev.yml feat: Metrics (#141) 2023-11-02 15:34:00 +08:00
docker-compose-logging.yml feat: Metrics (#141) 2023-11-02 15:34:00 +08:00
docker-compose-monitor.yml feat: Metrics (#141) 2023-11-02 15:34:00 +08:00
docker-compose.yml feat: Metrics (#141) 2023-11-02 15:34:00 +08:00
rustfmt.toml feat: ws connect (#3) 2023-05-08 19:03:50 +08:00

README.md

AppFlowy Cloud

  • Cloud Server for AppFlowy

Deployment

Development

Pre-requisites

You'll need to install:

Configuration

  • copy the configurations from dev.env to .env
  • edit the .env as required (such as SMTP configurations)

Run the dependency servers

docker compose --file docker-compose-dev.yml up -d

Install sqlx-cli

cargo install sqlx-cli

Run sqlx migration

sqlx database create
sqlx migrate run
cargo sqlx prepare --workspace

Run the AppFlowy-Cloud server

cargo run

Run the tests

Test

cargo test

Debugging

Postgres

    export PGPASSWORD=password
    psql --host=localhost --username=postgres --port=5433
  • Redis
    redis-cli -p 6380

Minio

Portainer