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: about 1 month ago
JSON representation
Get started quickly with a Postgres database and a Next.js App Router application.
- Host: GitHub
- URL: https://github.com/vercel/postgres-next-starter
- Owner: vercel
- License: mit
- Created: 2024-12-04T17:30:45.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-12-05T00:00:01.000Z (12 months ago)
- Last Synced: 2025-10-01T15:38:13.039Z (about 2 months ago)
- Language: TypeScript
- Size: 32.2 KB
- Stars: 53
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.