Skip to content

Instantly share code, notes, and snippets.

View santoshshinde2012's full-sized avatar
🏠
Working from home

Santosh Shinde santoshshinde2012

🏠
Working from home
View GitHub Profile
@santoshshinde2012
santoshshinde2012 / setup-typescript-jest.md
Created May 29, 2024 10:14
Setup jest for typescript project

Step 1: Installation

npm install --save-dev jest @types/jest ts-jest eslint-plugin-jest

Step 2: Configuration

  • We used the below configuration to configure jest, and in our case, we are using the jest.config.ts file.
@santoshshinde2012
santoshshinde2012 / setup-typescript-prettier.md
Created May 29, 2024 06:33
Setup prettier for typescript project

Step 1: Installation

npm install --save-dev prettier eslint-config-prettier

Step 2: Configuration

  • We used the below configuration to configure eslint, and in our case, we are using the .prettierrc file.
@santoshshinde2012
santoshshinde2012 / setup-typescript-eslint.md
Created May 29, 2024 06:14
Setup eslint for typescript project

Step 1: Installation

npm install --save-dev eslint @eslint/js @types/eslint__js typescript typescript-eslint

Step 2: Configuration

  • We used the below configuration to configure eslint, and in our case, we are using the eslint.config.mjs file.
@santoshshinde2012
santoshshinde2012 / setup-swagger.md
Last active October 17, 2022 17:23
Setup Swagger API Documentation in Node js with Express js and Typescript

Step1 - Install below npm modules with in our application

npm install --save-dev swagger-ui-express @types/swagger-ui-express

Step2 - Create swagger.json file in root directory with below config

{
@santoshshinde2012
santoshshinde2012 / Crypto.md
Last active November 29, 2023 18:17
Secure Client-Side Storage Data Using With Web Crypto (Typescript, AES-GCM, PBKDF2)
export default class Crypto {
    // iterations: It must be a number and should be set as high as possible.
    // So, the more is the number of iterations, the more secure the derived key will be,
    // but in that case it takes greater amount of time to complete.
    // number of interation - the value of 2145 is randomly chosen
    private static iteration = 10;
  
    // algorithm - AES 256 GCM Mode
    private static encryptionAlgorithm = "AES-GCM";
@santoshshinde2012
santoshshinde2012 / API Contract Example Spec.md
Created June 3, 2022 09:25 — forked from BeattieM/API Contract Example Spec.md
An example of an API contract between the server and front-end devices

#Users

  • User object
{
  id: integer
  username: string
  email: string
  created_at: datetime(iso 8601)
  updated_at: datetime(iso 8601)
}
@santoshshinde2012
santoshshinde2012 / Resources-Multitenant-Architecture.md
Last active March 25, 2022 09:01
Resources to start with Multi-tenant Architecture

Resources to start with Multi-tenant Architecture

Introduction

Multi tenant architecture is an ecosystem or model, in which a single environment can serve multiple tenants utilising a scalable, available, and resilient architecture. The underlying infrastructure is completely shared, logically isolated, and with fully centralised services.

Creating a multi-tenant software-as-a-service (SaaS) application requires developers and architects to take new approaches to how they design, build, operate, and deploy their solutions. SaaS touches every dimension of your design, including how you decompose your system into services, how those services are built, how they are secured, how they store data, and how they are deployed.

@santoshshinde2012
santoshshinde2012 / sonarqube-node-tpescript-demo.md
Created July 14, 2021 18:09
Setup SonarQube for Node JS Typescript Project

Setup SonarQube for Node JS Typescript Project

What is SonarQube?

SonarQube is an open source quality management platform, dedicated to continuously analyze and measure technical quality, from project portfolio to method.

https://www.sonarqube.org/

Basic of SonarQube

@santoshshinde2012
santoshshinde2012 / Resources-for-MicroFrontend.md
Last active September 9, 2024 06:11
Resources to start with Micro Frontend

Resources to start with Micro Frontend

Here I have Curated tutorial and resource links on the micro frontend, meant to be a collection of high-quality articles and resources for someone who wants to learn about the Micro Frontend, as well as a source for quality information on advanced topics and techniques. Not quite "awesome", but hopefully useful as a starting point, I can give to others. Your suggestions always welcome.

Micro Frontend

  • An architectural style where independently deliverable frontend applications are composed into a greater whole.
  • Scaling frontend development so that many teams can work simultaneously on a large and complex product is even harder.