rsnext/examples/with-redis
Lee Robinson 7c7d981b2d
examples: progressive enhancement for Redis example (#59937)
The example had `useOptimistic` and wasn't structured so that the
browser could fall back to `action` if JS was still loading or disabled.
2023-12-25 20:07:13 -06:00
..
app examples: progressive enhancement for Redis example (#59937) 2023-12-25 20:07:13 -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: progressive enhancement for Redis example (#59937) 2023-12-25 20:07:13 -06:00
postcss.config.js Fix tailwind error with Redis example. (#27042) 2021-07-12 10:35:50 -05:00
README.md examples: progressive enhancement for Redis example (#59937) 2023-12-25 20:07:13 -06:00
tailwind.config.ts examples: update Redis to App Router (#59311) 2023-12-24 10:09:23 -06: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).