Prerequisites

Required to hook everything up.

Installing the application ships the guestbook user interface and default Supabase wiring.

You'll need to first:

  • Install Node.js.
  • Configure a Supabase project.
  • Hook up Google OAuth 2.0 to enable admin.

Install Node.js with npm

Download the 22 LTS Windows installer from nodejs.org. The installer includes npm.

Or, install fnm (fnm-windows.zip), then call:

fnm install 22
fnm use 22

Confirm that you have the right versions:

# Should return v22.23.2
node -v
# Should return 10.9.8
npm -v

Create Supabase Project

Create an account and organization with Supabase, then on the Create a new project screen:

  1. Enter in your Organization, Project name, and Database password.

    Hang on to your Database password — we'll need to enter this into your .env.local file under your DATABASE_URL to replace [YOUR-PASSWORD].

  2. Select a Region.

  3. Under Security, check off:

    • Enable Data API
    • Enable automatic RLS
  4. Click Create new project.

Create Google Cloud Project

Log in to your Google Cloud console:

  1. Create a new Google Cloud project.

  2. When the project is ready, select your new project.

  3. In the left sidebar, click APIs & Services, then select OAuth consent screen.

  4. In OAuth Overview, click Get started.

  5. Configure your project, then click Create. For example, enter your:

    • App Information
    • Audience (for personal Google accounts, select External)
    • Contact Information
    • Finish (to agree to the Google API Services: User Data Policy)
  6. Click Create.

Connect Supabase and Google

After you have your Google OAuth client credentials, within Supabase:

  1. In the left sidebar, click Authentication, then select Sign In / Providers.

  2. Under Auth Providers, click Google.

  3. Toggle Enable Sign in with Google to ON.

  4. Replace the Client IDs with your Google OAuth client ID.

  5. Paste in your Client Secret (for OAuth).

  6. Click Save.

What's Next

Fork the starter repository or drop the guestbook kit into your existing Next.js app: