Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/KryptXBSA/t3-twitter-clone
Twitter clone built with T3 Stack + NextAuth + Supabase + Prisma
https://github.com/KryptXBSA/t3-twitter-clone
express nextauth nodejs openapi postgresql prisma supabase t3-stack tailwindcss trpc typescript
Last synced: about 2 months ago
JSON representation
Twitter clone built with T3 Stack + NextAuth + Supabase + Prisma
- Host: GitHub
- URL: https://github.com/KryptXBSA/t3-twitter-clone
- Owner: AlandSleman
- License: mit
- Created: 2023-02-14T19:28:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-17T19:09:54.000Z (over 1 year ago)
- Last Synced: 2024-04-18T05:21:30.465Z (8 months ago)
- Topics: express, nextauth, nodejs, openapi, postgresql, prisma, supabase, t3-stack, tailwindcss, trpc, typescript
- Language: TypeScript
- Homepage: https://twitter-clone.kurdmake.com
- Size: 747 KB
- Stars: 165
- Watchers: 4
- Forks: 21
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nextjs - Twitter Clone - Twitter clone built with Next.js + T3 Stack + NextAuth + Supabase + Prisma. (Apps)
- fucking-awesome-nextjs - Twitter Clone - Twitter clone built with Next.js + T3 Stack + NextAuth + Supabase + Prisma. (Apps)
README
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 "" ON storage.objects FOR INSERT TO public WITH CHECK (bucket_id = '');`**How to Run Locally**
To run the project locally, follow these steps:
* Clone the project `git 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 running `npm install`
* Push the Prisma schema to the database `npx prisma db push`
* Build the project `npm run build`
* Start the project `npm start`If you want to use Express.js for the backend instead of Next.js, Check the other branch `with-express`