Skip to content

Instantly share code, notes, and snippets.

@gichamba
gichamba / app.ts
Last active September 23, 2023 06:34
Charging Engine
/* eslint-disable @typescript-eslint/no-floating-promises */
/* eslint-disable @typescript-eslint/strict-boolean-expressions */
/* eslint-disable @typescript-eslint/restrict-template-expressions */
/* eslint-disable @typescript-eslint/no-misused-promises */
import express from "express";
import { json } from "body-parser";
import { createClient } from "redis";
const DEFAULT_BALANCE = 100;