JigolKa / twitter-clone

🎉Twitter Clone built using Next.js + Prisma + NextAuth + TailwindCSS + Redis and much more...

Home Page:https://twitter-clone-jigolka.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twitter Clone

Install dependencies

npm install

Set up your .env variables

  1. This project uses Redis for the analytics on each post. You'll need to provide these 3 variables: You can adjust the configuration if needed
REDIS_PASSWORD=""
REDIS_HOST=""
REDIS_PORT=""
  1. To generate the NEXTAUTH_SECRET variable, just type the below command and copy the output string.
openssl rand -hex 32
  1. To set up authentication, you're not forced to follow my configuration. You can remove some providers, add others... However, if you want to setup Github, Discord and Google, make sure to read this useful blog post (This cover the Google and Github providers).

    To set up Discord, go here, then create a new application. Once created, go in the OAuth2 > General tab. You will see a client ID and a client secret appear. You may need to click on the Reset Secret to make your secret visible.

  2. The Prisma schema has been built for a CockroachDB database, but you are free to change this (Don't forget to make the appropriate changes in the schema).

Run the development server:

npm run dev

Learn More

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

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

About

🎉Twitter Clone built using Next.js + Prisma + NextAuth + TailwindCSS + Redis and much more...

https://twitter-clone-jigolka.vercel.app

License:Apache License 2.0


Languages

Language:TypeScript 92.1%Language:CSS 5.2%Language:JavaScript 2.1%Language:SCSS 0.5%