MCPcopy Index your code
hub / github.com/Hruthik-28/youtube-twitter

github.com/Hruthik-28/youtube-twitter @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
11 symbols 68 edges 35 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

YouTube + Twitter Backend

Introduction

This is a YOUTUBE + TWITTER backend project that covers allmost the functionalities of youtube and also combines the tweet functionality from twitter into it. Find more about his project in the documentaion below.

Important links

Content Link
API Documentation click here
Model click here

Features

User Management:

  • Registration, login, logout, password reset
  • Profile management (avatar, cover image, details)
  • Watch history tracking

Video Management:

  • Video upload and publishing
  • Video search, sorting, and pagination
  • Video editing and deletion
  • Visibility control (publish/unpublish)

Tweet Management:

  • Tweet creation and publishing
  • Viewing user tweets
  • Updating and deleting tweets

Subscription Management:

  • Subscribing to channels
  • Viewing subscriber and subscribed channel lists

Playlist Management:

  • Creating, updating, and deleting playlists
  • Adding and removing videos from playlists
  • Viewing user playlists

Like Management:

  • Liking and unliking videos, comments, and tweets
  • Viewing liked videos

Comment Management:

  • Adding, updating, and deleting comments on videos

Dashboard:

  • Viewing channel statistics (views, subscribers, videos, likes)
  • Accessing uploaded videos

Health Check:

  • Endpoint to verify the backend's health

Technologies Used

  • Node.js
  • Express.js
  • MongoDB
  • Cloudinary (must have an account)

Installation and Setup

  1. Clone the repository:

    bash git clone https://github.com/Hruthik-28/youtube-twitter.git

  2. Install dependencies:

    bash cd youtube-twitter npm install

  3. Set up environment variables: Create a .env in root of project and fill in the required values in the .env file using .env.sample file

  4. Start the server:

    bash npm run dev

Contributing

If you wish to contribute to this project, please feel free to contribute.

License

This project is licensed under ChaiAurCode.

Core symbols most depended-on inside this repo

asyncHandler
called by 43
src/utils/asyncHandler.js
uploadOnCloudinary
called by 7
src/utils/cloudinary.js
deleteOnCloudinary
called by 5
src/utils/cloudinary.js
generateAccessAndRefreshToken
called by 2
src/controllers/user.controller.js
connectToDB
called by 1
src/db/dbConnect.js
constructor
called by 0
src/utils/ApiResponse.js
constructor
called by 0
src/utils/apiError.js

Shape

Function 5
Class 4
Method 2

Languages

TypeScript100%

Modules by API surface

src/utils/apiError.js3 symbols
src/utils/ApiResponse.js3 symbols
src/utils/cloudinary.js2 symbols
src/utils/asyncHandler.js1 symbols
src/db/dbConnect.js1 symbols
src/controllers/user.controller.js1 symbols

Datastores touched

CommentCollection · 1 repos
LikeCollection · 1 repos
PlaylistCollection · 1 repos
SubscriptionCollection · 1 repos
TweetCollection · 1 repos
(mongodb)Database · 1 repos

For agents

$ claude mcp add youtube-twitter \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact