Skip to content

Migrate to SvelteKit, Bun, Drizzle, and Tailwind v4#22

Draft
google-labs-jules[bot] wants to merge 2 commits intomasterfrom
svelte-kit-16660516722151089045
Draft

Migrate to SvelteKit, Bun, Drizzle, and Tailwind v4#22
google-labs-jules[bot] wants to merge 2 commits intomasterfrom
svelte-kit-16660516722151089045

Conversation

@google-labs-jules
Copy link
Contributor

This PR migrates the legacy Next.js application to a modern stack using SvelteKit, Bun, Drizzle ORM, and Tailwind CSS v4.

Key Changes:

  1. Framework: Migrated from Next.js to SvelteKit, leveraging Svelte 5's Runes syntax ($state, $props).
  2. Runtime: Switched to Bun for faster installs and runtime execution, utilizing native APIs like Bun.password.
  3. Database: Switched from Prisma/MySQL to Drizzle ORM with PostgreSQL support. Schema defined in src/lib/server/db/schema.ts with explicit types to avoid circular dependency issues.
  4. API: Replaced tRPC with standard SvelteKit API routes (+server.ts).
  5. Styling: Upgraded to Tailwind CSS v4 using the @tailwindcss/vite plugin, removing PostCSS dependencies.
  6. Authentication: Implemented custom JWT-based authentication with Bun.password for hashing.

Verification:

  • bun run check passes.
  • bun run build passes (verified with dummy .env).
  • Frontend verification confirmed via Playwright screenshot of the homepage.

PR created automatically by Jules for task 16660516722151089045 started by @arisris

- Replaced Next.js with SvelteKit (using Svelte 5 Runes).
- Replaced Node.js with Bun.
- Replaced Prisma with Drizzle ORM (PostgreSQL support).
- Replaced MySQL with Hybrid Database (PostgreSQL/SQLite via Drizzle).
- Replaced tRPC with REST API.
- Replaced Konsta UI with pure Tailwind CSS v4 (using @tailwindcss/vite).
- Implemented Authentication using Bun.password and JWT.
- Migrated Homepage and core components.
- Configured project with `drizzle.config.ts`, `vite.config.ts`, and `svelte.config.js`.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

- Migrated Auth (Login/Register) with Bun.password.
- Migrated Product Details with Drizzle queries.
- Migrated Cart with SvelteKit Form Actions.
- Migrated Seller Dashboard (Products List/Add).
- Implemented robust `+page.server.ts` load/action patterns replacing tRPC.
- Finalized project structure and build configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants