Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A robust starter template integrating Next.js 13 server actions with Drizzle ORM and PlanetScale.
Next.js 13 with Drizzle ORM & PlanetScale Starter Template is a GitHub-hosted boilerplate that wires together the Next.js App Router, server actions, Drizzle ORM, PlanetScale, and Tailwind CSS into a ready-to-run full-stack project.
This starter template is a pre-configured Next.js 13 application that demonstrates how to use the App Router, experimental server actions, Drizzle ORM, and a PlanetScale MySQL database together. It takes a developer through the setup flow of cloning the repository, adding a PlanetScale connection string, running the Drizzle migration push, and starting the development server on localhost:3000. The template is published under an MIT license on GitHub by user tuffstuff9 and targets Node.js v14 or newer.
drizzle-kit push:mysql command to sync schema to the database.DATABASE_URL environment variable and a modified SSL connection string.useFormStatus hook from React/Next.js to manage pending states in form submissions.useFormStatus hook in a small, readable codebase.drizzle-kit push:mysql to push Drizzle schema changes directly to a PlanetScale branch, iterating on tables without writing SQL migrations by hand..env file with a DATABASE_URL from your PlanetScale database, replacing ?sslaccept=strict with ?ssl={"rejectUnauthorized":true} in the connection string.drizzle-kit push:mysql to push the Drizzle schema to PlanetScale.yarn dev or npm run dev and open http://localhost:3000.Yes, Tailwind CSS is included and configured as part of the starter template, so you can use utility classes immediately.
PlanetScale, a serverless MySQL database. The template includes Drizzle ORM and a command to push schema changes to PlanetScale.
The project is licensed under the MIT license, meaning you can use, modify, and distribute it freely with attribution.
The prerequisites are Node.js v14 or newer and a package manager like npm or Yarn. The setup steps are documented in the repository's README.