Run the following command:
git clone https://github.com/Abood2284/NeonDrizzle-Cloudflare-Tutorial.gitcd NeonDrizzle-Cloudflare-Tutorial/pnpm installThis Turborepo includes the following packages/apps:
linkp-website: a Next.js applinkp-worker: A Cloudflare Worker@repo/ui: a stub React component library shared by bothlinkp-websiteandlinkp-workerapplications@repo/eslint-config:eslintconfigurations (includeseslint-config-nextandeslint-config-prettier)@repo/typescript-config:tsconfig.jsons used throughout the monorepo@repo/db: a schema file shared by your app
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
To build all apps and packages, run the following command:
At your project root level:
pnpm run build
To start your Development run the following command in your root dir:
pnpm run dev
Make sure to add your own Neon DB URL Inside .dev.vars and .env
DATABASE_URL='YOUR_URL'
To Deploy your linkp-worker to your cloudflare:
cd linkp-workerpnpm run deployTo Deploy your linkp-website to your cloudflare Pages:
cd linkp-websitepnpm run deployEnjoy 🫰