Async Local Storage Example

Repository to show the usage and benefits of async local storage

Table of Contents

Preparing environment

This library has been designed to work with node v16 and npm 8. In order to configure your local environment you can run:

nvm install 16.0.0
nvm use
npm install npm@8.3.0 -g
npm install

Playground

This repo contains two main scripts for running the examples, ones that works without the async local storage and the other with it.

npm run start:initial
npm run start:without-storage
npm run start:with-storage

Building

npm run build

Linting

Run the linter

npm run lint

Fix lint issues automatically

npm run lint:fix