├── .gitignore ├── README.md ├── combined.log ├── config ├── cacheConfig.js ├── config.js ├── db.js └── emailConfig.js ├── controllers ├── authController.js ├── cspController.js ├── taskController.js └── userController.js ├── csp-report.log ├── error.log ├── middlewares ├── authMiddleware.js ├── authValidator.js ├── cacheMiddleware.js ├── cspValidator.js ├── errorHandler.js ├── rateLimiter.js └── taskValidator.js ├── models ├── Task.js └── User.js ├── package.json ├── redis.log ├── routes ├── authRoutes.js ├── cspRoutes.js ├── index.js ├── taskRoutes.js └── userRoutes.js ├── services ├── authService.js ├── cacheService.js ├── emailService.js └── logService.js ├── src ├── app.js └── server.js └── utils ├── csp.js ├── jwt.js ├── logger.js ├── messageCreator.js └── validator.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /combined.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/combined.log -------------------------------------------------------------------------------- /config/cacheConfig.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/config/cacheConfig.js -------------------------------------------------------------------------------- /config/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/config/config.js -------------------------------------------------------------------------------- /config/db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/config/db.js -------------------------------------------------------------------------------- /config/emailConfig.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/config/emailConfig.js -------------------------------------------------------------------------------- /controllers/authController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/controllers/authController.js -------------------------------------------------------------------------------- /controllers/cspController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/controllers/cspController.js -------------------------------------------------------------------------------- /controllers/taskController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/controllers/taskController.js -------------------------------------------------------------------------------- /controllers/userController.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /csp-report.log: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /error.log: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /middlewares/authMiddleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/middlewares/authMiddleware.js -------------------------------------------------------------------------------- /middlewares/authValidator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/middlewares/authValidator.js -------------------------------------------------------------------------------- /middlewares/cacheMiddleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/middlewares/cacheMiddleware.js -------------------------------------------------------------------------------- /middlewares/cspValidator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/middlewares/cspValidator.js -------------------------------------------------------------------------------- /middlewares/errorHandler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/middlewares/errorHandler.js -------------------------------------------------------------------------------- /middlewares/rateLimiter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/middlewares/rateLimiter.js -------------------------------------------------------------------------------- /middlewares/taskValidator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/middlewares/taskValidator.js -------------------------------------------------------------------------------- /models/Task.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/models/Task.js -------------------------------------------------------------------------------- /models/User.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/models/User.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/package.json -------------------------------------------------------------------------------- /redis.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/redis.log -------------------------------------------------------------------------------- /routes/authRoutes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/routes/authRoutes.js -------------------------------------------------------------------------------- /routes/cspRoutes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/routes/cspRoutes.js -------------------------------------------------------------------------------- /routes/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/routes/index.js -------------------------------------------------------------------------------- /routes/taskRoutes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/routes/taskRoutes.js -------------------------------------------------------------------------------- /routes/userRoutes.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /services/authService.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /services/cacheService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/services/cacheService.js -------------------------------------------------------------------------------- /services/emailService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/services/emailService.js -------------------------------------------------------------------------------- /services/logService.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/services/logService.js -------------------------------------------------------------------------------- /src/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/src/app.js -------------------------------------------------------------------------------- /src/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/src/server.js -------------------------------------------------------------------------------- /utils/csp.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/utils/csp.js -------------------------------------------------------------------------------- /utils/jwt.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/utils/jwt.js -------------------------------------------------------------------------------- /utils/logger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/utils/logger.js -------------------------------------------------------------------------------- /utils/messageCreator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/utils/messageCreator.js -------------------------------------------------------------------------------- /utils/validator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/farhan7reza7/modular_server/HEAD/utils/validator.js --------------------------------------------------------------------------------