This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"semi": true, | |
"singleQuote": true, | |
"arrowParens": "always", | |
"trailingComma": "es5", | |
"bracketSpacing": true, | |
"tabWidth": 4, | |
"useTabs": false, | |
"endOfLine": "crlf", | |
"overrides": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################################### | |
# .prettierignore Configuration File | |
#################################################### | |
# | |
# Version: 1.0.0 | |
# License: CC BY-NC-ND 4.0 | |
# | |
# Author: Mohammad Montasim-Al-Mamun Shuvo | |
# Created: 2025-01-28 | |
# Contact Email: [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################################### | |
# .gitattributes Configuration File | |
#################################################### | |
# This configuration file is used by Git to handle the line endings and encoding settings for files based on their type. | |
# It ensures consistent handling of files across different operating systems and environments. | |
#################################################### | |
# DEFAULT BEHAVIOR | |
# Purpose: Defines the default text handling behavior for files when committing and checking out. | |
# Use: Ensures automatic normalization of line endings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################################### | |
# .editorconfig Configuration File | |
#################################################### | |
# EditorConfig is awesome: https://EditorConfig.org | |
# This configuration enables consistent coding styles between various | |
# text editors and IDEs. By specifying formatting properties based | |
# on file types, it helps maintain a standard code style for teams | |
# or individual developers. The rules here act as a guide for | |
# better readability and maintainability of codebases. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import getAuthenticationToken from '../utilities/getAuthenticationToken.js'; | |
import httpStatus from '../constant/httpStatus.constants.js'; | |
import decodeAuthenticationToken | |
from '../utilities/decodeAuthenticationToken.js'; | |
import UsersModel from '../modules/api/users/users.model.js'; | |
const authenticateMiddleware = async (req, res, next) => { | |
const token = await getAuthenticationToken(req?.headers['authorization']); | |
if (!token) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileoverview Defines common file extension types for use in API responses. | |
* These file extension types represent various types of files that can be served by the API. | |
* Adjust these file extension types as needed to align with the API's content requirements. | |
* | |
* This structured approach using an object makes it easy to add, remove or access file types. | |
* | |
* @author Mohammad Montasim -Al- Mamun Shuvo | |
* @date 2024-03-03 | |
*/ |
First off, thank you so much for considering a contribution to our project. We welcome contributions from everyone!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'], | |
languageOptions: { | |
ecmaVersion: 2020, // Updated for more ES6+ features | |
sourceType: 'module', | |
globals: { | |
jest: 'readonly', | |
}, | |
}, | |
linterOptions: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileoverview Defines common Node.js system error codes for handling system-level errors. | |
* These error codes are used by the Node.js API in response to operations like file access, | |
* network requests, and subprocess management. This module centralizes error codes to improve | |
* error handling practices across the application. | |
* | |
* @author Mohammad Montasim -Al- Mamun Shuvo | |
* @date 2024-06-27 | |
*/ |