https://github.com/castle/castle-sample-app-ruby
Demo app to show off Castle Risk and Filter APIs
https://github.com/castle/castle-sample-app-ruby
Last synced: 3 months ago
JSON representation
Demo app to show off Castle Risk and Filter APIs
- Host: GitHub
- URL: https://github.com/castle/castle-sample-app-ruby
- Owner: castle
- License: mit
- Created: 2021-06-17T08:09:49.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-04-27T15:55:09.000Z (about 3 years ago)
- Last Synced: 2025-07-29T20:40:16.291Z (11 months ago)
- Language: HTML
- Size: 62.5 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Castle Demo Ruby App

A demo app to show off the capabilities of Castle [Filter and Risk APIs](https://reference.castle.io/#tag/risk_assessment).
Castle APIs help developers prevent new account abuse, account takeovers, and transaction fraud.
Create a free account and get API keys at: [dashboard.castle.io/signup/new](https://dashboard.castle.io/signup/new)
## Getting up and running
> This app requires [Ruby 3.0.1](https://www.ruby-lang.org/en/) to be installed.
```bash
bundle install
CASTLE_API_SECRET=your_secret CASTLE_PUB_KEY=pk_your_key bundle exec ruby app.rb
```
Navigate to [localhost:4567](http://localhost:4567) to test the Risk ans Filter endpoints. The results will show up in the [Castle Dashboard](https://dashboard.castle.io)
## License
MIT License
http://www.opensource.org/licenses/mit-license