Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vercel/postgres-next-starter

Get started quickly with a Postgres database and a Next.js App Router application.
https://github.com/vercel/postgres-next-starter

Last synced: 14 days ago
JSON representation

Get started quickly with a Postgres database and a Next.js App Router application.

Awesome Lists containing this project

README

        

# Next.js and Postgres Starter Template

## Tech Stack

- **Framework**: [Next.js](https://nextjs.org/)
- **Database**: [Postgres](https://www.postgresql.org/)
- **ORM**: [Drizzle](https://orm.drizzle.team/)

## Getting Started

```bash
git clone https://github.com/vercel/postgres-next-starter
cd postgres-next-starter
pnpm install
```

## Running Locally

Use the included setup script to create your `.env` file:

```bash
pnpm db:setup
```

Then, run the database migrations and seed the database:

```bash
pnpm db:generate
pnpm db:migrate
pnpm db:seed
```

Finally, run the Next.js development server:

```bash
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) in your browser to see the app in action.