rsnext/examples/with-redis
2024-01-15 21:19:59 -06:00
..
app examples: Update redis example with useOptimistic (#60596) 2024-01-15 21:19:59 -06:00
.env.example examples: update Redis to App Router (#59311) 2023-12-24 10:09:23 -06:00
.gitignore examples: update Redis to App Router (#59311) 2023-12-24 10:09:23 -06:00
next-env.d.ts Remove incorrect entries for pnpm debug log (#47241) 2023-03-26 22:26:05 -07:00
package.json examples: Update redis example with useOptimistic (#60596) 2024-01-15 21:19:59 -06:00
postcss.config.js chore(examples): use default prettier for examples/templates (#60530) 2024-01-11 16:01:44 -07:00
README.md examples: progressive enhancement for Redis example (#59937) 2023-12-25 20:07:13 -06:00
tailwind.config.ts chore(examples): use default prettier for examples/templates (#60530) 2024-01-11 16:01:44 -07:00
tsconfig.json examples: update Redis to App Router (#59311) 2023-12-24 10:09:23 -06:00

Redis Example (with Upstash)

This example showcases how to use Redis as a data store in a Next.js project.

The example is a roadmap voting application where users can enter and vote for feature requests. It features the following:

  • Users can add and upvote items (features in the roadmap)
  • Users can enter their email addresses to be notified about the released items.

Demo

Deploy Your Own

This examples uses Upstash (Serverless Redis Database) as its data storage. During deployment. The integration will help you create a free Redis database and link it to your Vercel project automatically.

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example with-redis roadmap
# or
yarn create next-app --example with-redis roadmap
# or
pnpm create next-app --example with-redis roadmap

Deploy it to the cloud with Vercel (Documentation).