Skip to content

AMANN23/Chitter-App

Repository files navigation

Chitter Application

A clone of a popular social network created using TypeScript and React!

Try Out the App Out For Yourself!

About the Project

Chitter represents a comprehensive full-stack application serving as a replica of the widely-used social media platform, Twitter (now X).

Users are empowered to create and share 'Chits,' engage with content through likes and comments, and establish connections by following other Chitter users, mirroring the functionalities of the original application.

This initial version of Chitter lays the groundwork for upcoming enhancements and advanced features, such as the ability to upload GIFs and videos, a direct messaging service, and the integration of a hashtag search functionality.

As the project is deployed on Vercel, a 504 (Gateway Timeout) error occurs, so not all the functions work but the app works perfectly locally. All of the main features will be screenshot and shown below!

Getting Started

To run the project locally, a few steps will need to be taken before it can function.

  1. In your terminal run:
git clone https://github.com/AMANN23/Chitter-App.git
  1. While in your main directory, write in your terminal:
npm install
npm install i
npm install bcrypt
  1. Create a .env file in the main directory

  2. Inside the .env file copy the following lines:

DATABASE_URL=
NEXTAUTH_JWT_SECRET="NEXT_AUTH_JWT_SECRET"
NEXTAUTH_SECRET="NEXT_AUTH_SECRET"
  1. To get the DATABASE_URL, you will need to complete these following sub-steps:
  • Sign up or Login to MongoDB.

  • Create a deployment choosing the free cluster option.

  • Create a username and password.

  • Add a 0.0.0.0/0 IP address so it can be accessed anywhere then click finish and close.

  • On the left sidebar click 'Database', 'Connect' and then click 'MongoDB for VS Code'

  • The Database URL can be found in a similar format to this 'mongodb+srv://username:@cluster0.***.mongodb.net/test'

  • The .env file should be completed

  1. In your terminal run:
npx prisma db push
  1. Make sure MongoDB for VS code is installed on your Visual Studio Code and connect with string using the 'Database URL'

  2. In your terminal run:

npm run dev
  1. Open http://localhost:3000 with your browser to see the results.

  2. Everything should be working but if not, delete all node modules and type in the terminal:

npm install

Enjoy the project!

Language/Technologies Used and Why?

  • TypeScript
  • React
  • TailwindCSS
  • Next.js
  • MongoDB
  • Prisma
  • Deployed by Vercel

Key Features

Screenshots of Key Features

Future Ideas to be Implemented

About

A Social Media App Resembling Twitter!

Resources

Stars

Watchers

Forks

Languages