Run the following command:
git clone https://github.com/Abood2284/NeonDrizzle-Cloudflare-Tutorial.git
cd NeonDrizzle-Cloudflare-Tutorial/
pnpm install
This 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-website
andlinkp-worker
applications@repo/eslint-config
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)@repo/typescript-config
:tsconfig.json
s 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-worker
pnpm run deploy
To Deploy your linkp-website
to your cloudflare Pages:
cd linkp-website
pnpm run deploy
Enjoy 🫰