0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
Go to file
2023-12-01 15:01:22 +01:00
.github/workflows fix: Wait for Postgres to be up in CI 2023-11-30 12:23:33 +01:00
hook-common chore: Add docstrings 2023-12-01 14:49:58 +01:00
hook-consumer Structure 2023-11-27 13:20:47 +00:00
hook-producer Structure 2023-11-27 13:20:47 +00:00
migrations feat: Support for retrying 2023-12-01 14:23:03 +01:00
.gitignore Structure 2023-11-27 13:20:47 +00:00
Cargo.lock feat: Initial PgQueue implementation 2023-11-29 18:52:12 +01:00
Cargo.toml Structure 2023-11-27 13:20:47 +00:00
docker-compose.yml feat: Initial PgQueue implementation 2023-11-29 18:52:12 +01:00
LICENSE Initial commit 2023-11-27 13:10:15 +00:00
README.md chore: Add basic requirements 2023-12-01 15:01:22 +01:00

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