This Guestbook Application example shows you how to use Fauna in your Next.js project.
Deploy the example using Vercel:
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-fauna with-fauna-app
yarn create next-app --example with-fauna with-fauna-app
pnpm create next-app --example with-fauna with-fauna-app
Head over to Fauna Dashboard and create a new database. You can name it whatever you want, but for this example, we'll use nextjs-guestbook
. Next, create a new collection called Entry
in your new database.
Finally create a new database access key to connect to your database.
Watch this video to learn how to connect to your database.
Install packages, set up if needed, then run the development server:
npm installnpm run dev
Your app should be up and running on http://localhost:3000!
This Guestbook Application example shows you how to use Fauna in your Next.js project.
Deploy the example using Vercel:
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-fauna with-fauna-app
yarn create next-app --example with-fauna with-fauna-app
pnpm create next-app --example with-fauna with-fauna-app
Head over to Fauna Dashboard and create a new database. You can name it whatever you want, but for this example, we'll use nextjs-guestbook
. Next, create a new collection called Entry
in your new database.
Finally create a new database access key to connect to your database.
Watch this video to learn how to connect to your database.
Install packages, set up if needed, then run the development server:
npm installnpm run dev
Your app should be up and running on http://localhost:3000!