HaNdTriX / drizzle-fiddle

Experimenting with some edge stuff...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drizzle Fiddle

This Fiddle explores some new strategies for using React Server Components with Next.js AppDir and Drizzle ORM. Please note that these patterns are experimental and should not be used in production.

Getting Started

  1. Run yarn to install the project dependencies
  2. Run cp .env.example .env and add your Credentials to the newly created .env file.
  3. Run yarn db:push to sync the db schema with your db.
  4. Run yarn dev to start the Development Server.

Experiments

  • πŸ”₯ FormData on the Server: β†’
  • 🫣 Isomorphic Form Submission: β†’
  • πŸ”₯ Make a schema change - run: yarn db:push) - no need form migrations: β†’
  • πŸ’‘ Tailwind Config in TS: β†’
  • 🫣 Next.js Meta API: β†’
  • πŸ”₯ Next.js Typed Routes: β†’
  • πŸ”₯ DB Schema in Typescript: β†’
  • 🫣 Streaming Binary Data (Image) from form input into DB β†’
  • πŸ’‘Using transitions to disable form while loading the next page β†’
  • πŸ’‘Using FormData with fetch automatically takes care of setting the corresponding http headers: β†’
  • 🫣 Rails Form Methods are back β†’

Learn More

To learn more about Next.js, take a look at the following resources:

Special Thanks

About

Experimenting with some edge stuff...


Languages

Language:TypeScript 99.2%Language:JavaScript 0.7%Language:CSS 0.1%