Skip to content

A minimal template for building full-stack React applications using Next.js, Vercel, and Neon.

Notifications You must be signed in to change notification settings

neondatabase-labs/vercel-marketplace-neon

Repository files navigation

Vercel with Neon

-> View demo: vercel-marketplace-neon.vercel.app

Neon Postgres

A minimal template for building full-stack React applications using Next.js, Vercel, and Neon.

Getting Started

Click the "Deploy" button to clone this repo, create a new Vercel project, setup the Neon integration, and provision a new Neon database:

Deploy to Vercel

Once the process is complete, you can clone the newly created GitHub repository and start making changes locally.

Local Setup

Installation

Install the dependencies:

npm install

You can use the package manager of your choice. For example, Vercel also supports bun install out of the box.

Development

Create a .env file in the project root

cp .env.example .env

Get your database URL

Obtain the database connection string from the Connection Details widget on the Neon Dashboard.

Add the database URL to the .env file

Update the .env file with your database connection string:

# The connection string has the format `postgres://user:pass@host/db`
DATABASE_URL=<your-string-here>

Start the development server

npm run dev

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

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

Learn More

To learn more about Neon, check out the Neon documentation:

To learn more about Next.js, take a look at the following resources:

Deploy on Vercel

Commit and push your code changes to your GitHub repository to automatically trigger a new deployment.

About

A minimal template for building full-stack React applications using Next.js, Vercel, and Neon.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published