This Repo implements the Token bucket algorithm for request rate limit per user, using NestJs and Redis.
# Start a Redis via docker:
$ docker run -p 6379:6379 -it redis/redis-stack-server:latest
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# Generate apiKey
$ localhost:3000/generate-api-key
# Test List movies using the generated key.
$ localhost:3000/movies?apiKey=KEY