This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
This template uses TiDB Cloud Serverless with the following stack:
- mysql2 - MySQL client for Node.js with connection pooling
- Kysely - Type-safe SQL query builder with full TypeScript support
- MysqlDialect - Kysely's MySQL dialect for query generation
The database connection requires TLS 1.2+ for secure communication with TiDB Cloud. See src/lib/db/db.ts for the connection configuration.
To learn more about this template, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- TiDB Cloud Starter Documents - learn about TiDB Cloud.
- Kysely - the type-safe SQL query builder for TypeScript
- mysql2 - MySQL client for Node.js
- shadcn/ui - a popular UI library for React.