Skip to content

aayush0325/movies-backend

Repository files navigation

Development

  1. Install dependencies
bun install
  1. Generate database migrations
bun run db:generate
  1. Create the D1 Database
bunx wrangler d1 create movies-db
  1. Add D1 database credentials to wrangler.toml
  2. Run the local SQLite database
bun run db:up
  1. Apply migrations to local database
bunx wrangler d1 execute movies-db --local --file=./drizzle/migrations/<migration file name here>
  1. Create a .dev.vars file in the root folder which looks like this
CLERK_SECRET_KEY=<You-secret-key>
CLERK_PUBLISHABLE_KEY=<Your-publishable-key>
  1. Start development server
bun run dev

Production

  1. Apply migrations to D1 database on Cloudflare
bunx wrangler d1 execute movies-db --remote --file=./drizzle/migrations/<migration file name here>
  1. Deploy the application
bun run deploy

About

Winning project for Mercer | Mettl StackHack 2.0

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published