Skip to content

AyushK101/yt-backend

Repository files navigation

YOUTUBE BACKEND

chronology

  1. initialization: npm , public
  2. setup : git, .gitignore generator, [app,constants,index].js
  3. prettier configuration
  4. src/ controllers, db, middlewares, models, routes, utils
  5. package i
  • db is always in another continent-Hitesh Choudhry 📏
  1. db connection
  • change in .env, reload nodemon required.
- token - user don't have to login on ever request
- accessToken - short lived
- if accessToken expires -> 404 to frontend then, frontend hit a endpoint where it refresh the accessToken with the help of refresh token.
- mongoose internally converts string '_id' to object(string) whenever we use _id field . 
- but in aggregation pipeline it won't convert .

About

youtube backend - learning backend

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors