Example application for real-time fraud detection using Tinybird.
- Setup your Tinybird account
Click this button to deploy the data project to Tinybird 👇
Follow the guided process, and your Tinybird workspace is now ready to start receiving events.
- Setup this repository locally
git clone https://github.com/tinybirdco/fraud-detection-demo.git
cd fraud-detection-demo
- Install dependencies
npm install
- Install and configure the Tinybird CLI
To start working with data projects as if they were software projects, First, install the Tinybird CLI in a virtual environment. You'll need python3 installed.
Check the Tinybird CLI documentation for other installation options and troubleshooting tips.
python3 -mvenv .e
. .e/bin/activate
pip install tinybird-cli
tb auth --interactive
Choose your region: 1 for us-east
, 2 for eu
. A new .tinyb
file will be created.
Go to https://ui.tinybird.co/tokens and copy the token with admin rights.
Once you have successfully authenticated with Tinybird, you can run the following to upload the pipes to your Tinybird workspace.
tb push --no-check
- Start sending data to Tinybird with Mockingbird. Check the Mockingbird CLI documentation for other installation, options and troubleshooting. Note, that you will need to paste in your Tinybird token.
mockingbird-cli tinybird --datasource=transactions --token=[PASTE_YOUR_TOKEN_FROM_TINYBIRD] --endpoint=eu_gcp --schema='schema.json' --eps 100
- Go to your Tinybird workspace and check the data is flowing.
Need help?: Community Slack • Tinybird Docs • Email