Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/vercel/postgres-next-starter
- Owner: vercel
- License: mit
- Created: 2024-12-04T17:30:45.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-05T00:00:01.000Z (about 1 month ago)
- Last Synced: 2024-12-18T23:00:35.226Z (17 days ago)
- Language: TypeScript
- Size: 32.2 KB
- Stars: 44
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
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.