A simple example of the SingleStore Drizzle ORM usage with Next.js
- Node.js version >=22.5.x
- A SingleStore cluster running. Sign up for a free SingleStore license.
- Next.js (latest)
- Drizzle ORM
- TailwindCSS
- TypeScript
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.