Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on May 29, 2024. It is now read-only.

Twitter clone built with T3 Stack + NextAuth + Supabase + Prisma

License

NotificationsYou must be signed in to change notification settings

KryptXBSA/t3-twitter-clone

Repository files navigation

This is an open source Twitter clone, Built with T3 Stack + NextAuth + Postgres(Supabase) + Prisma, It's a simple clone and may not be secure, So it's not recommended for production use.

Requirements

  • Postgres Database: I recommend Supabase, Register a supabase account > Create a new project > Create a new database.

  • Supabase Storage: Your project > Create a new Bucket > Add this policy to be able upload images via our backend:
    CREATE POLICY "<policy name>" ON storage.objects FOR INSERT TO public WITH CHECK (bucket_id = '<bucket-name>');

How to Run Locally

To run the project locally, follow these steps:

  • Clone the projectgit clone https://github.com/AlandSleman/t3-twitter-clone
  • Copy the contents of the .env.example file into a new file named .env, then replace the values with your own.
  • Install the project dependencies by runningnpm install
  • Push the Prisma schema to the databasenpx prisma db push
  • Build the projectnpm run build
  • Start the projectnpm start

If you want to use Express.js for the backend instead of Next.js, Check the other branchwith-express


[8]ページ先頭

©2009-2025 Movatter.jp