0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/README.md
2023-12-01 15:01:22 +01:00

730 B

rusty-hook

A reliable and performant webhook system for PostHog

Requirements

  1. Rust.
  2. sqlx-cli: To setup database and run migrations.
  3. Docker or podman (and podman-compose): To setup testing services.

Testing

  1. Start a PostgreSQL instance:
docker compose -f docker-compose.yml up -d --wait
  1. Prepare test database:
export DATABASE_URL=postgres://posthog:posthog@localhost:15432/test_database
sqlx database create
sqlx migrate run
  1. Test:
cargo test