Skip to content

Instantly share code, notes, and snippets.

View montasim's full-sized avatar
๐Ÿ’ญ
๐—Ÿ๐—ข๐—ข๐—ž๐—œ๐—ก๐—š ๐—™๐—ข๐—ฅ ๐—ก๐—˜๐—ช ๐—ข๐—ฃ๐—ฃ๐—ข๐—ฅ๐—ง๐—จ๐—ก๐—œ๐—ง๐—œ๐—˜๐—ฆ.

๏ผญโ™ข๏ผฎ๏ผดฮ›๏ผณ๏ผฉ๏ผญ montasim

๐Ÿ’ญ
๐—Ÿ๐—ข๐—ข๐—ž๐—œ๐—ก๐—š ๐—™๐—ข๐—ฅ ๐—ก๐—˜๐—ช ๐—ข๐—ฃ๐—ฃ๐—ข๐—ฅ๐—ง๐—จ๐—ก๐—œ๐—ง๐—œ๐—˜๐—ฆ.
View GitHub Profile
@montasim
montasim / .gitignore
Last active January 28, 2025 08:51
This file specifies intentionally untracked files that Git should ignore.
####################################################
# .gitignore 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]
@montasim
montasim / .babelrc
Created July 16, 2024 08:53
This file defines the presets used to compile JavaScript code with Babel.
{
"presets": ["@babel/preset-env"]
}
@montasim
montasim / logger.service.js
Last active August 2, 2024 05:52
A Winston logger instance to handle application logging.
import winston from 'winston';
import DailyRotateFile from 'winston-daily-rotate-file';
import configuration from '../configuration/configuration.js';
import environment from '../constant/envTypes.constants.js';
// Check if the environment is production
const isProduction = configuration.env === environment.PRODUCTION;
const logger = winston.createLogger({
level: 'debug', // This will capture all logs at level 'debug' and above
@montasim
montasim / configuration.js
Last active August 2, 2024 05:54
A Winston logger instance to handle application logging.
import dotenv from 'dotenv';
import Joi from 'joi';
import environment from '../constant/envTypes.constants.js';
dotenv.config({
path: `.env.${process.env.NODE_ENV || environment.DEVELOPMENT}`,
});
/**
@montasim
montasim / license-badges.md
Created July 11, 2024 07:00 — forked from lukas-h/license-badges.md
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@montasim
montasim / jsdoc.json
Created July 6, 2024 14:29
This configuration ensures that the documentation for your JavaScript project is comprehensive, maintaining high standards of readability and accessibility for developers.
{
"source": {
"include": ["src"],
"includePattern": ".+\\.js$",
"excludePattern": "(build/|node_modules/|documentation/)"
},
"plugins": ["plugins/markdown"],
"templates": {
"cleverLinks": true,
"monospaceLinks": true,
@montasim
montasim / eslint.config.mjs
Created July 6, 2024 14:28
This ESLint configuration is crafted to ensure that the JavaScript code in your project adheres to a set of defined standards and practices, enhancing code quality and maintainability.
/**
* ESLint Configuration File
* @fileoverview This configuration file sets up linting rules and environments for a JavaScript project.
* It includes settings for ECMAScript 2020 features, enforces coding styles, and configures plugins for additional linting capabilities.
*/
export default {
// Specifies the types of files ESLint will lint
files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
@montasim
montasim / ecosystem.config.json
Created July 6, 2024 14:26
The ecosystem.config.json file is a configuration file used by PM2, a popular process manager for Node.js applications. This file allows you to define and manage complex application environments with multiple configurations. Below is a detailed overview and description of the settings specified in your ecosystem.config.json file for a library maโ€ฆ
{
"apps": [
{
"name": "library-management-system-server:production",
"script": "build/server.js",
"instances": 1,
"autorestart": true,
"watch": false,
"time": true,
"exec_mode": "cluster",
@montasim
montasim / .yarnclean
Last active July 16, 2024 09:06
Using the .yarnclean file effectively helps maintain a cleaner, more efficient codebase and can be a crucial part of optimizing JavaScript projects that use Yarn as a package manager.
####################################################
# Yarn Clean Configuration File
####################################################
# This file lists patterns of files and directories that are deemed unnecessary and can be safely deleted after installing packages via Yarn.
# The cleaning process reduces the size of node_modules by removing unneeded files such as tests, documentation, and various configuration files.
####################################################
# Test Directories
# Purpose: Identify test directories that are not needed in production environments.
# Use: Automatically remove common directory names used for tests.
@montasim
montasim / .versionrc.json
Created July 6, 2024 14:22
Using a .versionrc.json file: Automates Version Management: Automatically handles version increments based on commit types and messages, ensuring consistent versioning that adheres to semantic versioning principles. Streamlines Releases: Simplifies the process of generating changelogs and tagging releases, saving time and reducing human error. Eโ€ฆ
{
"types": [
{
"type": "feat",
"section": "Features",
"hidden": false
},
{
"type": "fix",
"section": "Bug Fixes",