Skip to content

Latest commit

 

History

History
67 lines (57 loc) · 1.1 KB

README.md

File metadata and controls

67 lines (57 loc) · 1.1 KB

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.