Skip to content

simonzsh/Threads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

105 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Threads

I recreated the Threads application to improve my web development skills, particularly focusing on React and Next.js.

banner

βš’οΈ Tech Stack

  • For the frontend, I used React and Next.js to build a dynamic server-rendered application, with Tailwind CSS for styling and next-themes for dark mode support.
  • For authentication, I integrated next-auth to handle user sign-ins securely.
  • For the database, I chose MongoDB, and I used bcrypt to encrypt passwords.
  • To enhance user experience, I implemented react-toastify for notifications.
  • The entire project is written in TypeScript for better type safety and maintainability.

πŸš€ Getting Started

Make sure you have Node.js v18.18 or later installed.

  1. Clone this repository
git clone https://github.com/extrymes/Threads.git
cd Threads
  1. Install dependencies
npm install
  1. Create .env file containing the required environment variables (see below)
touch .env
  1. Build and run the project
npm run build
npm start

πŸ”‘ Environment Variables

These keys are necessary for the project and must be declared as environment variables in the .env file.

Variable name Description
MONGODB_CLIENT The MongoDB connection string (take a look at MongoDB Manual).
MONGODB_DATABASE The name of the database to connect to.
NEXTAUTH_SECRET A random string used to hash tokens, sign/encrypt cookies and generate cryptographic keys.
NEXTAUTH_URL The canonical URL of the site (e.g. http://localhost:3000 for local development).

🀝 Contributing

Contributions are welcome! Please open an issue or submit a pull request.

This project is released under the MIT License.

About

Recreating Threads application with React and Next.js πŸ‘¨β€πŸ’»

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors