rsnext/examples/inngest
Steven 4466ba436b
chore(examples): use default prettier for examples/templates (#60530)
## Description
This PR ensures that the default prettier config is used for examples
and templates.

This config is compatible with `prettier@3` as well (upgrading prettier
is bigger change that can be a future PR).

## Changes
- Updated `.prettierrc.json` in root with `"trailingComma": "es5"` (will
be needed upgrading to prettier@3)
- Added `examples/.prettierrc.json` with default config (this will
change every example)
- Added `packages/create-next-app/templates/.prettierrc.json` with
default config (this will change every template)

## Related

- Fixes #54402
- Closes #54409
2024-01-11 16:01:44 -07:00
..
src chore(examples): use default prettier for examples/templates (#60530) 2024-01-11 16:01:44 -07:00
.env.development examples: Add inngest next.js example (#56049) 2023-10-28 11:57:27 -05:00
.gitignore examples: Add inngest next.js example (#56049) 2023-10-28 11:57:27 -05:00
next.config.js chore(examples): use default prettier for examples/templates (#60530) 2024-01-11 16:01:44 -07:00
package.json examples: fix inngest example for 3.x sdk (#57712) 2023-10-29 11:38:21 -05:00
README.md examples: Add inngest next.js example (#56049) 2023-10-28 11:57:27 -05:00
tsconfig.json examples: Add inngest next.js example (#56049) 2023-10-28 11:57:27 -05:00

Next.js and Inngest Example

This is an example of how to use Inngest to easily add durable work flows to your Next.js application. It keeps things simple:

  • Bare bones examples with a single button UI that triggers an event
  • Runs the Inngest dev server locally for immediate feedback

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

To full deploy you'll need an Inngest Cloud account and the Vercel Inngest integration configured.

How to use

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

npx create-next-app --example inngest inngest-app
yarn create next-app --example inngest inngest-app
pnpm create next-app --example inngest inngest-app
bunx create-next-app --example inngest inngest-app

This is a Next.js project bootstrapped with create-next-app.

Notes

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

The Inngest dev server will be running at http://localhost:8288. It can take a few seconds to start up.