Give Garden is a cozy card-collection garden game built with Next.js, Clerk, Neon, and Drizzle.
- Copy the variables from
.env.exampleinto.env.local. - Add the Neon pooled connection string as
DATABASE_URL. - Apply the checked-in database migration with
npm run db:migrate. - Start the app with
npm run dev.
The Clerk development application is already linked on this machine and its development keys are stored in the ignored .env.local file. Never commit that file.
npm run dev— run the local Next.js app.npm run build— create and validate a production build.npm run db:generate— generate migrations after changingdb/schema.ts.npm run db:migrate— apply pending migrations to the configured Neon database.npm run db:studio— inspect the configured database with Drizzle Studio.
For production, configure a Clerk production instance and add the production Clerk keys, DATABASE_URL, and PLEDGE_SECRET_TOKEN to the hosting provider's environment variables.