Skip to content

singlestore-labs/s2-drizzle-orm-driver-demo

Repository files navigation

SingleStore Drizzle ORM driver demo

A simple example of the SingleStore Drizzle ORM usage with Next.js

Prerequisites

  • Node.js version >=22.5.x
  • A SingleStore cluster running. Sign up for a free SingleStore license.

Tech Stack

  • Next.js (latest)
  • Drizzle ORM
  • TailwindCSS
  • TypeScript

Getting started

Install project dependencies

npm install
# or
yarn
# or
pnpm install

Create a .env file with your Database credentials

# You can get this information from https://portal.singlestore.com/
DB_URL=singlestore://<database-user>:<database-password>@<database-host>:<database-port>/<database-name>?ssl={}

Apply the database migrations

npm run migrate
# or
yarn migrate
# or
pnpm migrate

Run the development server

npm run dev
# or
yarn dev
# or
pnpm dev

Build for production

npm run build
# or
yarn build
# or
pnpm build

Start the production server

npm start
# or
yarn start
# or
pnpm start

Open http://localhost:3000 with your browser to see the result.

About

A simple example of the S2 Drizzle ORM usage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •