https://github.com/sirius248/rate_limitter
Rails throttling example
https://github.com/sirius248/rate_limitter
rails ruby
Last synced: 2 months ago
JSON representation
Rails throttling example
- Host: GitHub
- URL: https://github.com/sirius248/rate_limitter
- Owner: sirius248
- Created: 2017-09-06T09:51:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-06T16:34:50.000Z (almost 9 years ago)
- Last Synced: 2025-02-04T15:28:47.197Z (over 1 year ago)
- Topics: rails, ruby
- Language: Ruby
- Homepage: https://ln-rate-limitter.herokuapp.com/home/index
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rails throttling example
[](https://codeclimate.com/github/kimquy/rate_limitter)
[](https://travis-ci.org/kimquy/rate_limitter)
# Manual Testing
* Make a single request from command line with Curl
Simply copy the code below into command line. Curl is required.
```bash
curl https://ln-rate-limitter.herokuapp.com/home/index
```
* Make multiple request from command line with Curl
```bash
for i in {1..5}; do curl https://ln-rate-limitter.herokuapp.com/home/index; done
```
# Unit test
```ruby
bundle exec rspec
```