├── .env.sample ├── .gitignore ├── .prettierignore ├── .prettierrc ├── Readme.md ├── package.json ├── public └── temp │ └── .gitkeep └── src ├── app.js ├── constants.js ├── controllers ├── comment.controller.js ├── dashboard.controller.js ├── healthcheck.controller.js ├── like.controller.js ├── playlist.controller.js ├── subscription.controller.js ├── tweet.controller.js ├── user.controller.js └── video.controller.js ├── db └── index.js ├── index.js ├── middlewares ├── auth.middleware.js └── multer.middleware.js ├── models ├── comment.model.js ├── like.model.js ├── playlist.model.js ├── subscription.model.js ├── tweet.model.js ├── user.model.js └── video.model.js ├── routes ├── comment.routes.js ├── dashboard.routes.js ├── healthcheck.routes.js ├── like.routes.js ├── playlist.routes.js ├── subscription.routes.js ├── tweet.routes.js ├── user.routes.js └── video.routes.js └── utils ├── ApiError.js ├── ApiResponse.js ├── asyncHandler.js └── cloudinary.js /.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/.env.sample -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/.prettierrc -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/Readme.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/package.json -------------------------------------------------------------------------------- /public/temp/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/app.js -------------------------------------------------------------------------------- /src/constants.js: -------------------------------------------------------------------------------- 1 | export const DB_NAME = "videotube" -------------------------------------------------------------------------------- /src/controllers/comment.controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/controllers/comment.controller.js -------------------------------------------------------------------------------- /src/controllers/dashboard.controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/controllers/dashboard.controller.js -------------------------------------------------------------------------------- /src/controllers/healthcheck.controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/controllers/healthcheck.controller.js -------------------------------------------------------------------------------- /src/controllers/like.controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/controllers/like.controller.js -------------------------------------------------------------------------------- /src/controllers/playlist.controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/controllers/playlist.controller.js -------------------------------------------------------------------------------- /src/controllers/subscription.controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/controllers/subscription.controller.js -------------------------------------------------------------------------------- /src/controllers/tweet.controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/controllers/tweet.controller.js -------------------------------------------------------------------------------- /src/controllers/user.controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/controllers/user.controller.js -------------------------------------------------------------------------------- /src/controllers/video.controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/controllers/video.controller.js -------------------------------------------------------------------------------- /src/db/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/db/index.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/index.js -------------------------------------------------------------------------------- /src/middlewares/auth.middleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/middlewares/auth.middleware.js -------------------------------------------------------------------------------- /src/middlewares/multer.middleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/middlewares/multer.middleware.js -------------------------------------------------------------------------------- /src/models/comment.model.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/models/comment.model.js -------------------------------------------------------------------------------- /src/models/like.model.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/models/like.model.js -------------------------------------------------------------------------------- /src/models/playlist.model.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/models/playlist.model.js -------------------------------------------------------------------------------- /src/models/subscription.model.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/models/subscription.model.js -------------------------------------------------------------------------------- /src/models/tweet.model.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/models/tweet.model.js -------------------------------------------------------------------------------- /src/models/user.model.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/models/user.model.js -------------------------------------------------------------------------------- /src/models/video.model.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/models/video.model.js -------------------------------------------------------------------------------- /src/routes/comment.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/routes/comment.routes.js -------------------------------------------------------------------------------- /src/routes/dashboard.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/routes/dashboard.routes.js -------------------------------------------------------------------------------- /src/routes/healthcheck.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/routes/healthcheck.routes.js -------------------------------------------------------------------------------- /src/routes/like.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/routes/like.routes.js -------------------------------------------------------------------------------- /src/routes/playlist.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/routes/playlist.routes.js -------------------------------------------------------------------------------- /src/routes/subscription.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/routes/subscription.routes.js -------------------------------------------------------------------------------- /src/routes/tweet.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/routes/tweet.routes.js -------------------------------------------------------------------------------- /src/routes/user.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/routes/user.routes.js -------------------------------------------------------------------------------- /src/routes/video.routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/routes/video.routes.js -------------------------------------------------------------------------------- /src/utils/ApiError.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/utils/ApiError.js -------------------------------------------------------------------------------- /src/utils/ApiResponse.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/utils/ApiResponse.js -------------------------------------------------------------------------------- /src/utils/asyncHandler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/utils/asyncHandler.js -------------------------------------------------------------------------------- /src/utils/cloudinary.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codeinthusiast/backend_js/HEAD/src/utils/cloudinary.js --------------------------------------------------------------------------------