Skip to content

HarshitAditya27/Threads

Repository files navigation

Threads

Deployed Link: https://threads-woad.vercel.app/

Introduction πŸ±β€πŸ’»

  • Created Threads prototype using Next.js, React, and TypeScript. This prototype can perform creating users, posting a thread, creating communities, inviting members and posting threads via the community page, replying and commenting on threads, and also getting activity updates on threads, and can perform many more functionalities !.
  • Various tools such as Clerk is used for authentication and creating and using communities, MongoDB database for storing all kinds of data, shadcn for enhancing UI components and uploadthing for enabling file uploads in Next.js application.

Tech Stack used πŸ‘¨β€πŸ’»

  • HTML
  • TailwindCSS
  • TypeScript
  • MongoDB
  • Next.js

Features 🧰

  • User authentication πŸ‘€.
  • Create and comments on threads πŸ’¬
  • Individual user and community bio page with the total number of threads, replies, members, etc.πŸ“„.
  • Edit functionality for users and community βš’οΈ.
  • Storing all thread data posted by users and the community πŸ«™.
  • Mentioning real date, time, and name of the community when a user posts a thread as a member of a community ⌚.
  • Suggesting users and communities for a user to see and join πŸ§‘β€πŸ’».
  • Providing all updates on a thread by a user via the activity section πŸ“°
  • Deleting thread functionality πŸ—‘οΈ.

Learnings πŸ“

  • Learned how to use varoius tools such as Clerk, shadcn, and uploadthing to implement various functionalities for creating real world application in Next.js.
  • Learned how to use MongoDB for storing and modifying data to produce correct and error-free results in deployed version of the application.

Installation πŸ› οΈ

Step 1: Fork the repository. You can fork the repository by clicking on the fork button on the right-hand side below the profile.

Step 2: Clone your forked repository. Replace yourusername with your GitHub Username.

git clone "https://github.com/yourusername/Threads.git"

Step 3 : Go to the project folder and run npm i. It will install all the packages and dependencies used in the project.

npm i

Step 4 : Run npm run dev. This will start the project in your local machine πŸ–₯️.

npm run dev

Hurray πŸ₯³, you successfully deployed the project in your local machine πŸŽ‰.

🚨But the app won't work because it will require API keys and MongoDB database connection link from various tools which are mentioned in Setup .env file section.

Setup .env file

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY= 
MONGODB_URL= 
UPLOADTHING_SECRET=
UPLOADTHING_APP_ID= 
NEXT_CLERK_WEBHOOK_SECRET=

Screenshots

Screenshot (419) Screenshot (420) Screenshot (422) Screenshot (423) Screenshot (424) Screenshot (425) Screenshot (426) Screenshot (427) Screenshot (428) Screenshot (429) Screenshot (430) Screenshot (431) Screenshot (432) Screenshot (434)

Loved the project πŸ’–?

If you found the project intresting then please do give this project a star ⭐.


Made with πŸ’– by Harshit Aditya