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-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 November 21, 2022 20: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.

Setup Eslint Prettier and Husky in Node JS Typescript Project

1. ESLint

  • Step 1 - Install the dependencies

    • eslint
      • ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.
      • npm install --save-dev eslint
    • typescript-eslint/parser
@santoshshinde2012
santoshshinde2012 / essential-methods-of-the-eventemitter.md
Last active June 20, 2021 06:08
Essential methods of the EventEmitter

Essential methods of the EventEmitter

[x] on(event, listener)

// Adds a listener to the end of the listeners array for the specified event.
// By default, event listeners are invoked in the order they are added. The emitter.prependListener() method can be used as an alternative to add the event listener to the beginning of the listeners array.

const EventEmitter = require('events')