Ratelimit with Upstash Redis

Ratelimit with Upstash Redis

Ratelimit your applications with Upstash’s Redis and Ratelimit

0

boilerplate.detail.metadata.lastUpdated

il y a 4 mois

R

boilerplate.detail.metadata.author

Renaud

boilerplate.detail.metadata.price

boilerplate.detail.metadata.free

npx boilerapp ratelimit-with-upstash-redis

Documentation

@upstash/ratelimit & @upstash/redis example

This example demonstrates using @upstash/ratelimit with Upstash Redis.

Local Development

Copy the example env file:

cp .env.local.example .env.local

Set the environment variables in the new env file after creating an Upstash Redis instance.

Then, install the dependencies:

npm install

Finally, run the application with

npm run dev

Deploy to Vercel

To deploy to vercel, simply run

vercel

If you create a new project, you may need to set the environment variables and redeploy the app. \

boilerplate.detail.sections.discussion

Comments (0)

FAQ

Frequently Asked Questions

Have a question? We have the answers. If you can't find what you're looking for, feel free to contact us.

Boilerapp is a community platform dedicated to sharing boilerplates, starter kits, and project templates for developers. Our goal is simple: save you time on initial setup so you can code what really matters. Whether you are looking for a simple code base or a complete SaaS project, you will find it here.

Have more questions?

Our team is here to help. Contact us and we will get back to you as soon as possible.