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.
.github/workflows | ||
hook-common | ||
hook-consumer | ||
hook-producer | ||
migrations | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
docker-compose.yml | ||
LICENSE | ||
README.md |
rusty-hook
A reliable and performant webhook system for PostHog
Requirements
- Rust.
- sqlx-cli: To setup database and run migrations.
- Docker or podman (and podman-compose): To setup testing services.
Testing
- Start a PostgreSQL instance:
docker compose -f docker-compose.yml up -d --wait
- Prepare test database:
export DATABASE_URL=postgres://posthog:posthog@localhost:15432/test_database
sqlx database create
sqlx migrate run
- Test:
cargo test