Home >Web Front-end >JS Tutorial >I just cloned Threads!

I just cloned Threads!

Patricia Arquette
Patricia ArquetteOriginal
2024-12-27 01:01:09718browse

Created: Dec 8, 2024

Stack

  • Remix
  • Drizzle
  • Sqlite
  • Uploadthing

Thoughts upon developing (probably irrelevant)

Remix has a straightforward logic, only took me a few days to understand the concepts of Remix.

Tried implementing proper html semantics and accessibility like aria-labels, etc.

I like drizzle better than prisma.

They kinda stick to web standards, so it's easy to understand.

No middlewares, so we have to check for user session in every route for authorization.

I just cloned Threads! mmvergara / threads-clone

Simple threads clone made using remix, drizzle, sqlite.

Threads Clone

  • Created: Dec 8, 2024

Stack

  • Remix
  • Drizzle
  • Sqlite
  • Uploadthing

Installation

Fill in the .env file with the correct values. then

<span># Install dependencies</span>
npm install

<span># Create local.db</span>
touch local.db

<span># Push schema to local.db</span>
npx drizzle-kit push

<span># Run</span>
npm run dev

<span># Open studio for database visualization</span>
npx drizzle-kit studio
Enter fullscreen mode Exit fullscreen mode

Screenshots

I just cloned Threads! I just cloned Threads! I just cloned Threads! I just cloned Threads! I just cloned Threads! I just cloned Threads! I just cloned Threads! I just cloned Threads! I just cloned Threads!

Thoughts upon developing (probably irrelevant)

  • Remix has a straightforward logic, only took me a few days to understand the concepts of Remix.

  • Tried implementing proper html semantics and accessibility like aria-labels, etc.

  • I like drizzle better than prisma.

  • They kinda stick to web standards, so it's easy to understand.

  • No middlewares, so we have to check for user session in every route for authorization.

    https://remix.run/docs/en/1.19.3/pages/faq#how-can-i-have-a-parent-route-loader-validate-the-user-and-protect-all-child-routes


View on GitHub


The above is the detailed content of I just cloned Threads!. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn