Database seeding with latest T3 Stack (/w Drizzle) and Faker

Hello! I've been now working a project based on latest Theo's The Modern React Tutorial (https://www.youtube.com/watch?v=d5x0JCZbAJs) Project that I'm working requires migration from existing system to new one, after it is ready. And before that I would like to use a lot of seeded data in database, for testing UI/UX and other functionalities. Issues that I have run into, are that @faker-js/faker isn't able to provide proper types for typescript, and what I found from their documentation, for Typescript support tsconfig.json should have moduleResolution: "node", while on T3 stack it's set as Bundler. moduleResolution goes out of my understanding, and just blindly changing that to node, obviously seems to break rest of application. The second thing is with initialising Drizzle connection to Vercel Postgres. I've checked tutorial mentioned previously here on https://dev.to/anasrin/seeding-database-with-drizzle-orm-fga but in my opinion, that feels so much extra hustle (half a dozen extra packages), for just getting db seeding done, while all db-connections are done so elegantly in the stack. I would imagine that many others are also looking for faked data for their development workflow, could there maybe be demand for great YT tutorial on this?
Theo - t3․gg
YouTube
From 0 to Production - The Modern React Tutorial (RSCs, Next.js, Sh...
The Modern React Tutorial is FINALLY done. This one took awhile. Shoutout to ALL the awesome sponsors who made this possible: - Vercel - Clerk - Posthog - Sentry - Upstash NOTES I MENTION DURING VIDEO "Nextgram": https://github.com/vercel/nextgram/tree/main/app "useUploadThingInputProps": https://gist.github.com/t3dotgg/0464ca78e94acce80ba04ca...
DEV Community
Seeding Database With Drizzle ORM
Database This post assume using PostgreSQL for database, check...
0 Replies
No replies yetBe the first to reply to this messageJoin