- initialization: npm , public
- setup : git, .gitignore generator, [app,constants,index].js
- prettier configuration
- src/ controllers, db, middlewares, models, routes, utils
- package i
db is always in another continent-Hitesh Choudhry 📏
- 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 .