├── .env.example ├── .eslintrc.json ├── .gitignore ├── .prettierrc ├── LICENSE ├── README.md ├── package.json ├── public └── .gitkeep ├── server.js └── src ├── config └── pg.js ├── controllers ├── auth.controller.js └── user.controller.js ├── helpers ├── env.js └── response.js ├── middlewares ├── authorization.js ├── jwtAuth.js ├── upload.js └── validation.js ├── models ├── auth.model.js ├── chat.model.js └── user.model.js ├── routes ├── auth.route.js └── user.route.js ├── socket └── index.js ├── templates ├── confirm-email │ └── index.js └── reset-password │ └── index.js ├── utils ├── deleteFile.js ├── deleteGoogleDrive.js ├── generateJwtToken.js ├── sendEmail.js └── uploadGoogleDrive.js ├── validations ├── auth.validation.js └── user.validation.js └── views └── welcome.ejs /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/.env.example -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/package.json -------------------------------------------------------------------------------- /public/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/server.js -------------------------------------------------------------------------------- /src/config/pg.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/config/pg.js -------------------------------------------------------------------------------- /src/controllers/auth.controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/controllers/auth.controller.js -------------------------------------------------------------------------------- /src/controllers/user.controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/controllers/user.controller.js -------------------------------------------------------------------------------- /src/helpers/env.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/helpers/env.js -------------------------------------------------------------------------------- /src/helpers/response.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/helpers/response.js -------------------------------------------------------------------------------- /src/middlewares/authorization.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/middlewares/authorization.js -------------------------------------------------------------------------------- /src/middlewares/jwtAuth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/middlewares/jwtAuth.js -------------------------------------------------------------------------------- /src/middlewares/upload.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/middlewares/upload.js -------------------------------------------------------------------------------- /src/middlewares/validation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/middlewares/validation.js -------------------------------------------------------------------------------- /src/models/auth.model.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/models/auth.model.js -------------------------------------------------------------------------------- /src/models/chat.model.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/models/chat.model.js -------------------------------------------------------------------------------- /src/models/user.model.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/models/user.model.js -------------------------------------------------------------------------------- /src/routes/auth.route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/routes/auth.route.js -------------------------------------------------------------------------------- /src/routes/user.route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/routes/user.route.js -------------------------------------------------------------------------------- /src/socket/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/socket/index.js -------------------------------------------------------------------------------- /src/templates/confirm-email/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/templates/confirm-email/index.js -------------------------------------------------------------------------------- /src/templates/reset-password/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/templates/reset-password/index.js -------------------------------------------------------------------------------- /src/utils/deleteFile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/utils/deleteFile.js -------------------------------------------------------------------------------- /src/utils/deleteGoogleDrive.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/utils/deleteGoogleDrive.js -------------------------------------------------------------------------------- /src/utils/generateJwtToken.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/utils/generateJwtToken.js -------------------------------------------------------------------------------- /src/utils/sendEmail.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/utils/sendEmail.js -------------------------------------------------------------------------------- /src/utils/uploadGoogleDrive.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/utils/uploadGoogleDrive.js -------------------------------------------------------------------------------- /src/validations/auth.validation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/validations/auth.validation.js -------------------------------------------------------------------------------- /src/validations/user.validation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/validations/user.validation.js -------------------------------------------------------------------------------- /src/views/welcome.ejs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/altrawan/realtime-chat-api/HEAD/src/views/welcome.ejs --------------------------------------------------------------------------------