├── .babelrc ├── .dependencygraph └── setting.json ├── .env.test ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── custom.md │ └── feature_request.md └── workflows │ └── node.js.yml ├── .gitignore ├── .mocharc.json ├── .nycrc ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── README.md ├── SECURITY.md ├── config ├── db.js ├── swagger.js └── swagger.json ├── controllers ├── authController.js ├── metricsController.js └── userController.js ├── docker-compose.yml ├── index.js ├── middleware ├── auth.js ├── authorize.js ├── errorHandler.js └── upload.js ├── models ├── metrics.js └── user.js ├── package.json ├── prometheus.yml ├── public └── reset-password.html ├── routes ├── loginRoutes.js ├── metricsRoutes.js └── userRoutes.js ├── test └── userRoutes.test.mjs ├── uploads └── 873409ad6aa037c801ba38a04be33200 └── utils ├── logger.js └── mailer.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/.babelrc -------------------------------------------------------------------------------- /.dependencygraph/setting.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/.dependencygraph/setting.json -------------------------------------------------------------------------------- /.env.test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/.env.test -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/custom.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/.github/ISSUE_TEMPLATE/custom.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/workflows/node.js.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/.github/workflows/node.js.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/.gitignore -------------------------------------------------------------------------------- /.mocharc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/.mocharc.json -------------------------------------------------------------------------------- /.nycrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/.nycrc -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/SECURITY.md -------------------------------------------------------------------------------- /config/db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/config/db.js -------------------------------------------------------------------------------- /config/swagger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/config/swagger.js -------------------------------------------------------------------------------- /config/swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/config/swagger.json -------------------------------------------------------------------------------- /controllers/authController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/controllers/authController.js -------------------------------------------------------------------------------- /controllers/metricsController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/controllers/metricsController.js -------------------------------------------------------------------------------- /controllers/userController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/controllers/userController.js -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/index.js -------------------------------------------------------------------------------- /middleware/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/middleware/auth.js -------------------------------------------------------------------------------- /middleware/authorize.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/middleware/authorize.js -------------------------------------------------------------------------------- /middleware/errorHandler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/middleware/errorHandler.js -------------------------------------------------------------------------------- /middleware/upload.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/middleware/upload.js -------------------------------------------------------------------------------- /models/metrics.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/models/metrics.js -------------------------------------------------------------------------------- /models/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/models/user.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/package.json -------------------------------------------------------------------------------- /prometheus.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/prometheus.yml -------------------------------------------------------------------------------- /public/reset-password.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/public/reset-password.html -------------------------------------------------------------------------------- /routes/loginRoutes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/routes/loginRoutes.js -------------------------------------------------------------------------------- /routes/metricsRoutes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/routes/metricsRoutes.js -------------------------------------------------------------------------------- /routes/userRoutes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/routes/userRoutes.js -------------------------------------------------------------------------------- /test/userRoutes.test.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/test/userRoutes.test.mjs -------------------------------------------------------------------------------- /uploads/873409ad6aa037c801ba38a04be33200: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/uploads/873409ad6aa037c801ba38a04be33200 -------------------------------------------------------------------------------- /utils/logger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/utils/logger.js -------------------------------------------------------------------------------- /utils/mailer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JawherKl/node-api-postgres/HEAD/utils/mailer.js --------------------------------------------------------------------------------