Skip to content

About

A backend for youtube and twitter like application.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Repository files navigation

YouTube + Twitter Like Backend

This is a simple backend project I built while learning backend development. It includes basic features inspired by YouTube and Twitter.

What it does

  • Users, videos, tweets, comments, likes, playlists, and subscriptions
  • File uploads for videos and images
  • Stats and health check routes

Tech

  • Node.js
  • Express
  • MongoDB

What I learned

  • Building complex aggregation pipelines in MongoDB (especially in stats controller)
  • Working with middleware for authentication and file uploads
  • Following REST API best practices
  • File handling with Cloudinary

Run locally

  1. Clone the repo
git clone https://github.com/Rakesh-46-VR/youtube-backend.git
cd youtube-backend
  1. Install dependencies
npm install
  1. Set up environment variables
  • Copy .env.example to .env
  • Fill in your MongoDB URL
  • Add Cloudinary credentials (for file uploads)
  • Add JWT secrets
  1. Start the server
npm run dev

The server will run on port 8000 (or whatever you set in .env).

About

A backend for youtube and twitter like application.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages