---
title: "Next.js Vercel app with Aurora DSQL"
description: "A full-stack React template with Next.js, Vercel, using native AWS integration."
url: "https://vercel.com/templates/next.js/next-js-vercel-app-with-aurora-dsql"
links:
  repository: "https://github.com/vercel/aws-dsql-movies-demo"
  demo: "https://aws-dsql-movies-demo.labs.vercel.dev/"
  deploy: "https://vercel.com/new/clone?demo-title=Next.js+Vercel+app+with+Aurora+DSQL&demo-description=A+full-stack+React+template+with+Next.js%2C+Vercel%2C+using+native+AWS+integration.&demo-url=https%3A%2F%2Faws-dsql-movies-demo.labs.vercel.dev%2F&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F4s3q1xEAJjR32AKKRXP7Mb%2Fcb123ec4acbc58f2fdf116b156d830b3%2FVercel-AWS-GitHub-DSQL.png&project-name=Next.js+Vercel+app+with+Aurora+DSQL&repository-name=next-js-vercel-app-with-aurora-dsql&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Faws-dsql-movies-demo&from=templates&skippable-integrations=1&products=%5B%7B%22type%22%3A%22integration%22%2C%22protocol%22%3A%22storage%22%2C%22productSlug%22%3A%22aws-dsql%22%2C%22integrationSlug%22%3A%22aws%22%7D%5D&root-directories=List+of+directory+paths+for+the+directories+to+clone+into+projects&project-names=Comma+separated+list+of+project+names%2Cto+match+the+root-directories"
---

# Next.js Vercel app with Aurora DSQL

A full-stack React template with Next.js, Vercel, using native AWS integration.

# AWS Aurora DQSL Movies Demo

This demo uses AWS DSQL Postgres with Next.js to fetch movies from the database. It is able to securely connect to DSQL without using hardcoded access tokens through Vercel's [OIDC Federation](https://vercel.com/docs/security/secure-backend-access/oidc).

[![This is an alt text.](https://github.com/vercel/aws-dsql-movies-demo/blob/main/public/Vercel-AWS-GitHub-DSQL.png?raw=true)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Faws-dsql-movies-demo&project-name=aws-dsql-movies-demo&repository-name=aws-dsql-movies-demo&products=%5B%7B%22type%22%3A%22integration%22%2C%22integrationSlug%22%3A%22aws%22%2C%22productSlug%22%3A%22aws-dsql%22%2C%22protocol%22%3A%22storage%22%7D%5D)

**Demo:**
[View Demo](https://aws-dsql-movies-demo.labs.vercel.dev)

**Getting Started:**
Click the "Deploy" button to clone this repo, create a new Vercel project, setup the AWS integration, and provision a new DSQL database:

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Faws-dsql-movies-demo&project-name=aws-dsql-movies-demo&repository-name=aws-dsql-movies-demo&products=%5B%7B%22type%22%3A%22integration%22%2C%22integrationSlug%22%3A%22aws%22%2C%22productSlug%22%3A%22aws-dsql%22%2C%22protocol%22%3A%22storage%22%7D%5D)

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

## Requirements

- Installed Aurora DSQL. You can do that via [Vercel Marketplace](https://vercel.com/marketplace/aws)

## Local Setup

1. Pull vercel environment variables locally

```bash
vercel env pull
```

2. Install dependencies:

```bash
pnpm install
```

3. Run migrations to create tables:

```bash
pnpm run db:migrate
```

4. Seed the database with movie data:

```bash
pnpm run db:seed
```

5. Start the development server:

```bash
pnpm run dev
```

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
