Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/evanshortiss/vercel-neon-drizzle-next


https://github.com/evanshortiss/vercel-neon-drizzle-next

Last synced: 21 days ago
JSON representation

Awesome Lists containing this project

README

        

Sample project that uses Neon with Drizzle and Next.js, and can be deployed on Vercel.

## Getting Started

1. Sign up for an account on [https://neon.tech](https://neon.tech/docs/get-started-with-neon/signing-up).
2. Create a `.env` file inside this repository and add your Neon Postgres database's connection string.
```
DATABASE_URL=postgresql://username:[email protected]/neondb?sslmode=require
```
3. Prepare your database using Drizzle and the included seed script:
```bash
npm i
npm run drizzle:generate
npm run drizzle:push
npm run seed
```
4. Start the application in dev mode:
```bash
npm run dev
```