An open API service indexing awesome lists of open source software.

https://github.com/deadcoder0904/nextjs-rate-limit

Rate Limit your Next.js API Routes using `rate-limiter-flexible`. The Easy Way!
https://github.com/deadcoder0904/nextjs-rate-limit

Last synced: 9 days ago
JSON representation

Rate Limit your Next.js API Routes using `rate-limiter-flexible`. The Easy Way!

Awesome Lists containing this project

README

          

# nextjs-rate-limit

> Rate Limit your Next.js API Routes using `rate-limiter-flexible`. The Easy Way!

#### 1. Install dependencies

```bash
pnpm install
```

#### 2. Run dev server in one terminal

```bash
pnpm dev
```

#### 3. Run rate limit script on another terminal

```bash
pnpm automate:ratelimit
```

#### 4. Run download script

```bash
pnpm automate:download
```

#### 5. Read all Redis Keys & Values

```bash
pnpm redis:getall
```