Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/evanshortiss/drizzle-neon-serverless-quickstart

A simple example of how to use Drizzle with Neon's Serverless Driver
https://github.com/evanshortiss/drizzle-neon-serverless-quickstart

Last synced: 22 days ago
JSON representation

A simple example of how to use Drizzle with Neon's Serverless Driver

Awesome Lists containing this project

README

        

# Neon Serverless Driver & Drizzle Quickstart

Requires Node.js v18.

## Usage

```bash
git clone [email protected]:evanshortiss/drizzle-neon-serverless-quickstart.git drizzle-and-neon
cd drizzle-and-neon

# Add your DATABASE_URL
cp .env.example .env
vi .env

# Install dependencies, use drizzle to generate shemas and push them to the
# database, then seed data into your database using the included script
npm i
npm run drizzle:generate
npm run drizzle:push
npm run seed

# Start the application in dev mode and query the database
npm run dev
```