Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evanshortiss/vercel-neon-drizzle-next
https://github.com/evanshortiss/vercel-neon-drizzle-next
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/evanshortiss/vercel-neon-drizzle-next
- Owner: evanshortiss
- Created: 2024-02-02T03:00:54.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-01T17:32:50.000Z (8 months ago)
- Last Synced: 2024-04-09T13:09:31.680Z (7 months ago)
- Language: TypeScript
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```