Skip to content

This is Youtube Tutorial on how to setup Cloudflare Worker + NextJs in a monorepo with Neon as DB and Drizzle as ORM and finally deploying everything on your cloudflare

Notifications You must be signed in to change notification settings

Abood2284/NeonDrizzle-Cloudflare-Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turborepo Cloudflare Starter

Setup

Run the following command:

git clone https://github.com/Abood2284/NeonDrizzle-Cloudflare-Tutorial.git
cd NeonDrizzle-Cloudflare-Tutorial/
pnpm install

What's inside?

This Turborepo includes the following packages/apps:

Apps and Packages

  • linkp-website: a Next.js app
  • linkp-worker: A Cloudflare Worker
  • @repo/ui: a stub React component library shared by both linkp-website and linkp-worker applications
  • @repo/eslint-config: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • @repo/typescript-config: tsconfig.jsons used throughout the monorepo
  • @repo/db: a schema file shared by your app

Utilities

This Turborepo has some additional tools already setup for you:

Build

To build all apps and packages, run the following command:

At your project root level:

pnpm run build

Development

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'

Deploy

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 🫰

About

This is Youtube Tutorial on how to setup Cloudflare Worker + NextJs in a monorepo with Neon as DB and Drizzle as ORM and finally deploying everything on your cloudflare

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published