https://github.com/trace2798/resend_shadcn_contact_form
https://github.com/trace2798/resend_shadcn_contact_form
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/trace2798/resend_shadcn_contact_form
- Owner: trace2798
- License: mit
- Created: 2023-08-23T09:48:51.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-25T13:41:32.000Z (almost 3 years ago)
- Last Synced: 2025-01-22T06:48:07.247Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://resend-shadcn-contact-form.vercel.app
- Size: 324 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---
title: Rate-limiting a feedback form.
products: ["redis", "resend-labs", "react-email"]
stack: ["Next.js", "Typescript"]
use_cases: ["Rate-limiting"]
author: "trace2798"
---
This example show a way of how you can implement [rate-limiting](https://github.com/upstash/ratelimit) using Upstash. In this example the feedback form is rate-limited.
### Demo
[Demo]()
### Prerequisites
**Node version 18.x.x**
### Cloning the repository
```shell
git clone https://github.com/upstash/examples.git
```
### Install packages
```shell
npm i
```
### Setup .env file
```
UPSTASH_REDIS_REST_URL=
UPSTASH_REDIS_REST_TOKEN=
RESEND_API_KEY=
```
### Start the app
```shell
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:
- [Documentation](https://docs.upstash.com)
- [Website](https://upstash.com)
- [Blog](https://upstash.com/blog)
- [Console](https://console.upstash.com)
- [Discord](https://upstash.com/discord)