fullstack-next-cloudflare

(โ˜… 1,401)

๐Ÿš€ Full-stack Next.js 15 + Cloudflare Workers template with D1 database, R2 storage, Better Auth, and Server Actions. Production-ready with automated CI/CD and generous free tiers.

  • .dev.vars.example
  • .gitignore
  • banner.svg
  • biome.json
  • cloudflare-env.d.ts
  • components.json
  • drizzle.config.ts
  • drizzle.local.config.ts
  • LICENSE
  • middleware.ts
  • next.config.ts
  • open-next.config.ts
  • package.json
  • pnpm-lock.yaml
  • postcss.config.mjs
  • README.md
  • tsconfig.json
  • worker-configuration.d.ts
  • wrangler.jsonc

๐Ÿš€ Installation Guide

1. Get the code
git clone https://github.com/ifindev/fullstack-next-cloudflare

Downloads the entire project code from GitHub to your computer.

cd fullstack-next-cloudflare

Moves into the project folder you just downloaded.

2. Node.js

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
pnpm install

Downloads and installs the libraries listed in package.json.

pnpm run cf-typegen

Type this command into your terminal and run it.

pnpm run db:generate

Type this command into your terminal and run it.

pnpm run db:migrate:local

Type this command into your terminal and run it.

pnpm run db:inspect:local

Type this command into your terminal and run it.

โœ… After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.

Pulled directly from this repo's README.

// repository documentation