Products:
Redis
Stack:
Next.js
Use Case:
Ratelimit
Languages:
TypeScript
Platforms:
Publisher:

Rate-limiting a feedback form.

This example show a way of how you can implement rate-limiting using Upstash. In this example the feedback form is rate-limited.

Demo

Demo

Prerequisites

Node version 18.x.x

Cloning the repository

git clone https://github.com/upstash/examples.git

Install packages

npm i

Setup .env file

UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=
RESEND_API_KEY=

Start the app

npm run dev

Available commands

Running commands with npm npm run [command]

| command | description | | :------ | :--------------------------------------- | | dev | Starts a development instance of the app | | build | To build your application | | start | Starts a production instance of the app |

Learn More

To learn more about Upstash and its services, check out the following resources: