Modern Next.js 15 starter with Privy authentication and Solana Agent Kit
@privy-io/server-auth
for secure user managementsolana-agent-kit
Create a new project using gitpick
Install dependencies
Set up environment variables
.env
file with the following variables:Initialize the database
Start the development server
Command | Description |
---|---|
pnpm dev | Start development server |
pnpm build | Build for production |
pnpm start | Start production server |
pnpm lint | Run linting |
pnpm format | Format code |
pnpm test | Run Playwright tests |
Command | Description |
---|---|
pnpm db:generate | Generate database schemas |
pnpm db:migrate | Run database migrations |
pnpm db:studio | Open Drizzle Studio |
pnpm db:push | Push schema changes |
pnpm db:check | Check schema changes |
Authentication Code Example
Solana Integration Example
lib/db/schema.ts
:
Database Schema Example