commit 11b57ce46a1928384f9a6666b27a40a3eff56df0 Author: Mohamad Fadhil Date: Tue Jul 8 03:17:12 2025 +0800 bootstrap js projects diff --git a/express-js/.gitignore b/express-js/.gitignore new file mode 100644 index 0000000..b38db2f --- /dev/null +++ b/express-js/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +build/ diff --git a/express-js/package-lock.json b/express-js/package-lock.json new file mode 100644 index 0000000..a09b221 --- /dev/null +++ b/express-js/package-lock.json @@ -0,0 +1,1180 @@ +{ + "name": "money-transfer", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "money-transfer", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "cors": "^2.8.5", + "express": "^5.1.0" + }, + "devDependencies": { + "@types/cors": "^2.8.19", + "@types/express": "^5.0.3", + "@types/node": "^24.0.10", + "ts-node": "^10.9.2", + "typescript": "^5.8.3" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha1-AGKcNaaI4FqIsc2mhPudXnPwAKE=", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha1-eg7mAfYPmaIMfHxf8MgDiMEYm9Y=", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.4", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", + "integrity": "sha1-c1gENDOy5dpWmqAsvEwSHaOvJ9c=", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha1-ZTT9WTOlO6fL86F2FeJzoNEnP/k=", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.11", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@tsconfig/node10/-/node10-1.0.11.tgz", + "integrity": "sha1-buRkAGhfEw4ngSjHs4t+Ax/1svI=", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha1-7j3vHyfZ7WbaxuRqKVz/sBUuBY0=", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha1-5DhjFihPALmENb9A9y91oJ2r9sE=", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha1-C5LcwMwcgfbzBqOB8o4xsaVlNuk=", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/body-parser": { + "version": "1.19.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/body-parser/-/body-parser-1.19.6.tgz", + "integrity": "sha1-GFm+u4/X2smRikXVTBlxq4ta9HQ=", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.38", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/connect/-/connect-3.4.38.tgz", + "integrity": "sha1-W6fzvE+73q/43e2VLl/yzFP42Fg=", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/cors": { + "version": "2.8.19", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/cors/-/cors-2.8.19.tgz", + "integrity": "sha1-2T6iZz/YyfaXNn9e7vwrv6lPA0I=", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/express": { + "version": "5.0.3", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/express/-/express-5.0.3.tgz", + "integrity": "sha1-bEvGrN3C4qWHFC4di+C84gdX6VY=", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^5.0.0", + "@types/serve-static": "*" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "5.0.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/express-serve-static-core/-/express-serve-static-core-5.0.6.tgz", + "integrity": "sha1-Qf7E6iDpx7IvAkq4ipXGuyiPUbg=", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/http-errors": { + "version": "2.0.5", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/http-errors/-/http-errors-2.0.5.tgz", + "integrity": "sha1-W3SasrFroRNCP+saZKldzTA5hHI=", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/mime": { + "version": "1.3.5", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/mime/-/mime-1.3.5.tgz", + "integrity": "sha1-HvMC4Bz30rWg+lJnkMkSO/HQZpA=", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "24.0.10", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/node/-/node-24.0.10.tgz", + "integrity": "sha1-9loWl3m/DXAgMYOhiQvnvujKLds=", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.8.0" + } + }, + "node_modules/@types/qs": { + "version": "6.14.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/qs/-/qs-6.14.0.tgz", + "integrity": "sha1-2LYM7PYvLbD7aOXgBgd7kXi4XeU=", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/range-parser": { + "version": "1.2.7", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/range-parser/-/range-parser-1.2.7.tgz", + "integrity": "sha1-UK5DU+qt3AQEQnmBL1LIxlhX28s=", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/send": { + "version": "0.17.5", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/send/-/send-0.17.5.tgz", + "integrity": "sha1-2ZHU8rFvKx70lxMfAKkRQpB5HnQ=", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.8", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/serve-static/-/serve-static-1.15.8.tgz", + "integrity": "sha1-gYDD++SnDo8AufcLm6fwjzWYeHc=", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/http-errors": "*", + "@types/node": "*", + "@types/send": "*" + } + }, + "node_modules/accepts": { + "version": "2.0.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/accepts/-/accepts-2.0.0.tgz", + "integrity": "sha1-u89LpQdUZ/PyEx6rPP/HPC9deJU=", + "license": "MIT", + "dependencies": { + "mime-types": "^3.0.0", + "negotiator": "^1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha1-o2CJi8QV7arEbIJB9jg5dbkwuBY=", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.4", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/acorn-walk/-/acorn-walk-8.3.4.tgz", + "integrity": "sha1-eU3RacOXft9LpOpHWDWHxYZiNrc=", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/arg/-/arg-4.1.3.tgz", + "integrity": "sha1-Jp/HrVuOQstjyJbVZmAXJhwUQIk=", + "dev": true, + "license": "MIT" + }, + "node_modules/body-parser": { + "version": "2.2.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/body-parser/-/body-parser-2.2.0.tgz", + "integrity": "sha1-96llbeMFJJpxW1Sbe4/Rq5393Po=", + "license": "MIT", + "dependencies": { + "bytes": "^3.1.2", + "content-type": "^1.0.5", + "debug": "^4.4.0", + "http-errors": "^2.0.0", + "iconv-lite": "^0.6.3", + "on-finished": "^2.4.1", + "qs": "^6.14.0", + "raw-body": "^3.0.0", + "type-is": "^2.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha1-iwvuuYYFrfGxKPpDhkA8AJ4CIaU=", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha1-S1QowiK+mF15w9gmV0edvgtZstY=", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha1-I43pNdKippKSjFOMfM+pEGf9Bio=", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/content-disposition": { + "version": "1.0.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/content-disposition/-/content-disposition-1.0.0.tgz", + "integrity": "sha1-hEQmyzmPk0yu/LsXIgASa8fOrOI=", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha1-i3cxYmVtHRCGeEyPI6VM5tc9eRg=", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha1-VWNpxHKiupEPKXmJG1JrNDYjftc=", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.2.2", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/cookie-signature/-/cookie-signature-1.2.2.tgz", + "integrity": "sha1-V8f8PMKTrKuf7FTXPhVpDr5KF5M=", + "license": "MIT", + "engines": { + "node": ">=6.6.0" + } + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/cors/-/cors-2.8.5.tgz", + "integrity": "sha1-6sEdpRWS3Ya58G9uesKTs9+HXSk=", + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha1-wdfo8eX2z8n/ZfnNNS03NIdWwzM=", + "dev": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/debug/-/debug-4.4.1.tgz", + "integrity": "sha1-5ai8bLxMbNPmQwiwaTo9T6VQGJs=", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/depd/-/depd-2.0.0.tgz", + "integrity": "sha1-tpYWPMdXVg0JzyLMj60Vcbeedt8=", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/diff/-/diff-4.0.2.tgz", + "integrity": "sha1-YPOuy4nV+uUgwRqhnvwruYKq3n0=", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha1-165mfh3INIL4tw/Q9u78UNow9Yo=", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha1-e46omAd9fkCdOsRUdOo46vCFelg=", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha1-mD6y+aZyTpMD9hrd8BHHLgngsPo=", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha1-BfdaJdq5jk+x3NXhRywFRtUFfI8=", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha1-HE8sSDcydZfOadLKGQp/3RcjOME=", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", + "license": "MIT" + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "5.1.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/express/-/express-5.1.0.tgz", + "integrity": "sha1-0xvq9xWgAW8NU/R9O016zyjHXMk=", + "license": "MIT", + "dependencies": { + "accepts": "^2.0.0", + "body-parser": "^2.2.0", + "content-disposition": "^1.0.0", + "content-type": "^1.0.5", + "cookie": "^0.7.1", + "cookie-signature": "^1.2.1", + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "finalhandler": "^2.1.0", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "merge-descriptors": "^2.0.0", + "mime-types": "^3.0.0", + "on-finished": "^2.4.1", + "once": "^1.4.0", + "parseurl": "^1.3.3", + "proxy-addr": "^2.0.7", + "qs": "^6.14.0", + "range-parser": "^1.2.1", + "router": "^2.2.0", + "send": "^1.1.0", + "serve-static": "^2.2.0", + "statuses": "^2.0.1", + "type-is": "^2.0.1", + "vary": "^1.1.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/finalhandler": { + "version": "2.1.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/finalhandler/-/finalhandler-2.1.0.tgz", + "integrity": "sha1-cjBjc6qJ0FqCQu1WnthqG/98Vh8=", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "on-finished": "^2.4.1", + "parseurl": "^1.3.3", + "statuses": "^2.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha1-ImmTZCiq1MFcfr6XeahL8LKoGBE=", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "2.0.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/fresh/-/fresh-2.0.0.tgz", + "integrity": "sha1-jdffahs6Gzpc8YbAWl3SZ2ImNaQ=", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha1-LALYZNl/PqbIgwxGTL0Rq26rehw=", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha1-dD8OO2lkqTpUke0b/6rgVNf5jQE=", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha1-FQs/J0OGnvPoUewMSdFbHRTQDuE=", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha1-ifVrghe9vIgCvSmd9tfxCB1+UaE=", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha1-/JxqeDoISVHQuXH+EBjegTcHozg=", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha1-AD6vkb563DcuhOxZ3DclLO24AAM=", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha1-t3dKFIbvc892Z6ya4IWMASxXudM=", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-errors/node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha1-VcsADM8dSHKL0jxoWgY5mM8aG2M=", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha1-pS+AvzjaGVLrXGgXkHGYcaGnJQE=", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w=", + "license": "ISC" + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha1-v/OFQ+64mEglB5/zoqjmy9RngbM=", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-promise": { + "version": "4.0.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/is-promise/-/is-promise-4.0.0.tgz", + "integrity": "sha1-Qv+fhCBsGZHSbev1IN1cAQQt0vM=", + "license": "MIT" + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha1-LrLjfqm2fEiR9oShOUeZr0hM96I=", + "dev": true, + "license": "ISC" + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha1-oN10voHiqlwvJ+Zc4oNgXuTit/k=", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "1.1.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/media-typer/-/media-typer-1.1.0.tgz", + "integrity": "sha1-ardLjy0zIPIGSyqHo455Mf86VWE=", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/merge-descriptors": { + "version": "2.0.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/merge-descriptors/-/merge-descriptors-2.0.0.tgz", + "integrity": "sha1-6pIvZgY1oiSe5WXgRJ+VHmtgOAg=", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha1-zds+5PnGRTDf9kAjZmHULLajFPU=", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "3.0.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/mime-types/-/mime-types-3.0.1.tgz", + "integrity": "sha1-sdlNaZepsy/WnrrtDbc96Ky1Gc4=", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/ms/-/ms-2.1.3.tgz", + "integrity": "sha1-V0yBOM4dK1hh8LRFedut1gxmFbI=", + "license": "MIT" + }, + "node_modules/negotiator": { + "version": "1.0.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/negotiator/-/negotiator-1.0.0.tgz", + "integrity": "sha1-tskbtHFy1p+Tz9fDV7u1KQGbX2o=", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha1-g3UmXiG8IND6WCwi4bE0hdbgAhM=", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha1-WMjEQRblSEWtV/FKsQsDUzGErD8=", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha1-naGee+6NEt/wUT7Vt2lXeTvC6NQ=", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-to-regexp": { + "version": "8.2.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/path-to-regexp/-/path-to-regexp-8.2.0.tgz", + "integrity": "sha1-c5kMwp5Xo/8qDZFAlRVt9dt56LQ=", + "license": "MIT", + "engines": { + "node": ">=16" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha1-8Z/mnOqzEe65S0LnDowgcPm6ECU=", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/qs": { + "version": "6.14.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/qs/-/qs-6.14.0.tgz", + "integrity": "sha1-xj+kBoDSxclBQSoOiZyJr2DAqTA=", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha1-PPNwI9GZ4cJNGlW4SADC8+ZGgDE=", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "3.0.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/raw-body/-/raw-body-3.0.0.tgz", + "integrity": "sha1-JbNHbwelFgBhna4/6C3cKKNuXg8=", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.6.3", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/router": { + "version": "2.2.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/router/-/router-2.2.0.tgz", + "integrity": "sha1-AZvmILcRyHZBFnzHm5kJDwCxRu8=", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "depd": "^2.0.0", + "is-promise": "^4.0.0", + "parseurl": "^1.3.3", + "path-to-regexp": "^8.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY=", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo=", + "license": "MIT" + }, + "node_modules/send": { + "version": "1.2.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/send/-/send-1.2.0.tgz", + "integrity": "sha1-MqdVT7d3uDHfqCg3D3c6OAjTchI=", + "license": "MIT", + "dependencies": { + "debug": "^4.3.5", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "mime-types": "^3.0.1", + "ms": "^2.1.3", + "on-finished": "^2.4.1", + "range-parser": "^1.2.1", + "statuses": "^2.0.1" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/serve-static": { + "version": "2.2.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/serve-static/-/serve-static-2.2.0.tgz", + "integrity": "sha1-nAJWTuJZvdIlG4LWWaLn4ZONZvk=", + "license": "MIT", + "dependencies": { + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "parseurl": "^1.3.3", + "send": "^1.2.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha1-ZsmiSnP5/CjL5msJ/tPTPcrxtCQ=", + "license": "ISC" + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha1-w/z/nE2pMnhIczNeyXZfqU/2a8k=", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha1-EMtZhCYxFdO3oOM2WR4pCoMK+K0=", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha1-1rtrN5Asb+9RdOX1M/q0xzKib0I=", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha1-Ed2hnVNo5Azp7CvcH7DsvAeQ7Oo=", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha1-j3XuzvdlteHPzcCA2llAntQk44I=", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha1-O+NDIaiKgg7RvYDfqjPkefu43TU=", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha1-cPAhyeGFvM3Kgg4m3EE4BcEBxx8=", + "dev": true, + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/type-is": { + "version": "2.0.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/type-is/-/type-is-2.0.1.tgz", + "integrity": "sha1-ZPbPA/kvzkAVwrIkeT9r3UsGjJc=", + "license": "MIT", + "dependencies": { + "content-type": "^1.0.5", + "media-typer": "^1.1.0", + "mime-types": "^3.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha1-kvij5ePPSXNW9BeMNM1lp/XoRA4=", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "7.8.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/undici-types/-/undici-types-7.8.0.tgz", + "integrity": "sha1-3gC4W3EMVBIuRPv9kR+NcBdM0pQ=", + "dev": true, + "license": "MIT" + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha1-Yzbo1xllyz01obu3hoRFp8BSZL8=", + "dev": true, + "license": "MIT" + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "license": "ISC" + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/yn/-/yn-3.1.1.tgz", + "integrity": "sha1-HodAGgnXZ8HV6rJqbkwYUYLS61A=", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + } + } +} diff --git a/express-js/package.json b/express-js/package.json new file mode 100644 index 0000000..cf092bf --- /dev/null +++ b/express-js/package.json @@ -0,0 +1,25 @@ +{ + "name": "money-transfer", + "version": "1.0.0", + "main": "server.ts", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "build": "tsc", + "dev": "node ./build/server.js", + "start": "tsc && npm run dev" + }, + "author": "", + "license": "ISC", + "description": "", + "devDependencies": { + "@types/cors": "^2.8.19", + "@types/express": "^5.0.3", + "@types/node": "^24.0.10", + "ts-node": "^10.9.2", + "typescript": "^5.8.3" + }, + "dependencies": { + "cors": "^2.8.5", + "express": "^5.1.0" + } +} diff --git a/express-js/server.ts b/express-js/server.ts new file mode 100644 index 0000000..3575d50 --- /dev/null +++ b/express-js/server.ts @@ -0,0 +1,18 @@ +import express, { Application } from "express"; +import Server from "./src/index"; + +const app: Application = express(); +const server: Server = new Server(app); +const PORT: number = process.env.PORT ? parseInt(process.env.PORT, 10) : 8080; + +app + .listen(PORT, "localhost", function () { + console.log(`Server is running on port ${PORT}.`); + }) + .on("error", (err: any) => { + if (err.code === "EADDRINUSE") { + console.log("Error: address already in use"); + } else { + console.log(err); + } + }); diff --git a/express-js/src/index.ts b/express-js/src/index.ts new file mode 100644 index 0000000..af14a42 --- /dev/null +++ b/express-js/src/index.ts @@ -0,0 +1,18 @@ +import express, { Application } from "express"; +import cors, { CorsOptions } from "cors"; + +export default class Server { + constructor(app: Application) { + this.config(app); + } + + private config(app: Application): void { + const corsOptions: CorsOptions = { + origin: "http://localhost:8081" + }; + + app.use(cors(corsOptions)); + app.use(express.json()); + app.use(express.urlencoded({ extended: true })); + } +} diff --git a/express-js/tsconfig.json b/express-js/tsconfig.json new file mode 100644 index 0000000..75cd3c6 --- /dev/null +++ b/express-js/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + /* Language and Environment */ + "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ + "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ + + /* Modules */ + "module": "commonjs", /* Specify what module code is generated. */ + "resolveJsonModule": true, /* Enable importing .json files. */ + + /* Emit */ + "outDir": "./build", /* Specify an output folder for all emitted files. */ + + /* Interop Constraints */ + "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ + "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ + + /* Type Checking */ + "strict": true, /* Enable all strict type-checking options. */ + + /* Completeness */ + "skipLibCheck": true /* Skip type checking all .d.ts files. */ + } +} diff --git a/hono/.gitignore b/hono/.gitignore new file mode 100644 index 0000000..36fabb6 --- /dev/null +++ b/hono/.gitignore @@ -0,0 +1,28 @@ +# dev +.yarn/ +!.yarn/releases +.vscode/* +!.vscode/launch.json +!.vscode/*.code-snippets +.idea/workspace.xml +.idea/usage.statistics.xml +.idea/shelf + +# deps +node_modules/ + +# env +.env +.env.production + +# logs +logs/ +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +# misc +.DS_Store diff --git a/hono/README.md b/hono/README.md new file mode 100644 index 0000000..e12b31d --- /dev/null +++ b/hono/README.md @@ -0,0 +1,8 @@ +``` +npm install +npm run dev +``` + +``` +open http://localhost:3000 +``` diff --git a/hono/package-lock.json b/hono/package-lock.json new file mode 100644 index 0000000..5aadbdb --- /dev/null +++ b/hono/package-lock.json @@ -0,0 +1,612 @@ +{ + "name": "money-transfer", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "money-transfer", + "dependencies": { + "@hono/node-server": "^1.15.0", + "hono": "^4.8.4" + }, + "devDependencies": { + "@types/node": "^20.11.17", + "tsx": "^4.7.1", + "typescript": "^5.8.3" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/aix-ppc64/-/aix-ppc64-0.25.6.tgz", + "integrity": "sha1-FksZEi4u1U+FRp353qmN2wHV554=", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/android-arm/-/android-arm-0.25.6.tgz", + "integrity": "sha1-TOsPQBE+mGEWm+g+KmcMJg3SNP8=", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/android-arm64/-/android-arm64-0.25.6.tgz", + "integrity": "sha1-j1Oefe+Ej3ZPZDJZjlHMOCD946U=", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/android-x64/-/android-x64-0.25.6.tgz", + "integrity": "sha1-rU8oAFdiLCX+mFwImZRDoZXcY6g=", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/darwin-arm64/-/darwin-arm64-0.25.6.tgz", + "integrity": "sha1-0fBAJzlrPWr8lrrNDRMWff2fAfc=", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/darwin-x64/-/darwin-x64-0.25.6.tgz", + "integrity": "sha1-K0ps7beZ9jV1jXgy11sjdyyO9o8=", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.6.tgz", + "integrity": "sha1-omJmzJfdeNw8Pz1niLG4NpexBV0=", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/freebsd-x64/-/freebsd-x64-0.25.6.tgz", + "integrity": "sha1-n+uOgmc1xWjr/ZSFmyKj+7apvdI=", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/linux-arm/-/linux-arm-0.25.6.tgz", + "integrity": "sha1-1uLNjvMZZGgGXUHxP6KmGqpyZEo=", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/linux-arm64/-/linux-arm64-0.25.6.tgz", + "integrity": "sha1-wHy+2OJJ9MKOfzJ4HTb8RpUpPSg=", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/linux-ia32/-/linux-ia32-0.25.6.tgz", + "integrity": "sha1-Pmgr1HxO3cxLjxOT38giJILxeZc=", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/linux-loong64/-/linux-loong64-0.25.6.tgz", + "integrity": "sha1-Rz9eouUjmcCK1M1rEubbzd1jDwU=", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/linux-mips64el/-/linux-mips64el-0.25.6.tgz", + "integrity": "sha1-mWBjHJ/WFgWwk5wZBDrPTvK1Fxg=", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/linux-ppc64/-/linux-ppc64-0.25.6.tgz", + "integrity": "sha1-R3y/i7BKoDS5TzYsMshrXDHbjT4=", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/linux-riscv64/-/linux-riscv64-0.25.6.tgz", + "integrity": "sha1-vNtGyPuOk6p3npoKYs1KwA3KxiY=", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/linux-s390x/-/linux-s390x-0.25.6.tgz", + "integrity": "sha1-9BLPX98K6oSf9Rxz/YF8bAI01G0=", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/linux-x64/-/linux-x64-0.25.6.tgz", + "integrity": "sha1-2CM8CbXrwMhVcS3F7rg1o6M0EQg=", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.6.tgz", + "integrity": "sha1-9Rro3RR0Fy5zz5y6+KONHHLdjxo=", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/netbsd-x64/-/netbsd-x64-0.25.6.tgz", + "integrity": "sha1-omdThgLA5QqFjPQdz+XYA2+NqOc=", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.6.tgz", + "integrity": "sha1-pRvmDEJbhcIWR5uMNErQURY18tI=", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/openbsd-x64/-/openbsd-x64-0.25.6.tgz", + "integrity": "sha1-fkp0PHP3VWLikiO6adC+bJyQCNo=", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.6.tgz", + "integrity": "sha1-IIelAo84eHkVTr9Eve36+hdoLls=", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/sunos-x64/-/sunos-x64-0.25.6.tgz", + "integrity": "sha1-VlMfhhcj6g3GKDoruINzBCI8tzY=", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/win32-arm64/-/win32-arm64-0.25.6.tgz", + "integrity": "sha1-9JifAz3qxvrjI6z/WHZPqLwBQ24=", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/win32-ia32/-/win32-ia32-0.25.6.tgz", + "integrity": "sha1-smDp33Hjk56zOSUHbTn2POx9FSU=", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@esbuild/win32-x64/-/win32-x64-0.25.6.tgz", + "integrity": "sha1-Qnbt1cEFvCixHGofdvudKdG9JcE=", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hono/node-server": { + "version": "1.15.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@hono/node-server/-/node-server-1.15.0.tgz", + "integrity": "sha1-MGw8UNkYHv9yadQ/rL9YyXUIBak=", + "license": "MIT", + "engines": { + "node": ">=18.14.1" + }, + "peerDependencies": { + "hono": "^4" + } + }, + "node_modules/@types/node": { + "version": "20.19.4", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/node/-/node-20.19.4.tgz", + "integrity": "sha1-xLjOUaD2daNUIlxYmAzKz+CvXXQ=", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/esbuild": { + "version": "0.25.6", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/esbuild/-/esbuild-0.25.6.tgz", + "integrity": "sha1-m4Kj2y+hMa7AaasED9V+0KiAzc0=", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.6", + "@esbuild/android-arm": "0.25.6", + "@esbuild/android-arm64": "0.25.6", + "@esbuild/android-x64": "0.25.6", + "@esbuild/darwin-arm64": "0.25.6", + "@esbuild/darwin-x64": "0.25.6", + "@esbuild/freebsd-arm64": "0.25.6", + "@esbuild/freebsd-x64": "0.25.6", + "@esbuild/linux-arm": "0.25.6", + "@esbuild/linux-arm64": "0.25.6", + "@esbuild/linux-ia32": "0.25.6", + "@esbuild/linux-loong64": "0.25.6", + "@esbuild/linux-mips64el": "0.25.6", + "@esbuild/linux-ppc64": "0.25.6", + "@esbuild/linux-riscv64": "0.25.6", + "@esbuild/linux-s390x": "0.25.6", + "@esbuild/linux-x64": "0.25.6", + "@esbuild/netbsd-arm64": "0.25.6", + "@esbuild/netbsd-x64": "0.25.6", + "@esbuild/openbsd-arm64": "0.25.6", + "@esbuild/openbsd-x64": "0.25.6", + "@esbuild/openharmony-arm64": "0.25.6", + "@esbuild/sunos-x64": "0.25.6", + "@esbuild/win32-arm64": "0.25.6", + "@esbuild/win32-ia32": "0.25.6", + "@esbuild/win32-x64": "0.25.6" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha1-ysZAd4XQNnWipeGlMFxpezR9kNY=", + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/get-tsconfig": { + "version": "4.10.1", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/get-tsconfig/-/get-tsconfig-4.10.1.tgz", + "integrity": "sha1-00wcAfR9ZaYGw3qnoXe8PlarSy4=", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/hono": { + "version": "4.8.4", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/hono/-/hono-4.8.4.tgz", + "integrity": "sha1-7cDnDoPIHAl386eGQ1kG5/2kj+Q=", + "license": "MIT", + "engines": { + "node": ">=16.9.0" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha1-YWs9wsVwVrVYjDHN9LPWTbEzcg8=", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/tsx": { + "version": "4.20.3", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/tsx/-/tsx-4.20.3.tgz", + "integrity": "sha1-+RPkkR1ZrRd8G87hnRA1743W4vs=", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "~0.25.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha1-kvij5ePPSXNW9BeMNM1lp/XoRA4=", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha1-aR0ArzkJvpOn+qE75hs6W1DvEss=", + "dev": true, + "license": "MIT" + } + } +} diff --git a/hono/package.json b/hono/package.json new file mode 100644 index 0000000..d980d50 --- /dev/null +++ b/hono/package.json @@ -0,0 +1,18 @@ +{ + "name": "money-transfer", + "type": "module", + "scripts": { + "dev": "tsx watch src/index.ts", + "build": "tsc", + "start": "node dist/index.js" + }, + "dependencies": { + "@hono/node-server": "^1.15.0", + "hono": "^4.8.4" + }, + "devDependencies": { + "@types/node": "^20.11.17", + "tsx": "^4.7.1", + "typescript": "^5.8.3" + } +} \ No newline at end of file diff --git a/hono/src/index.ts b/hono/src/index.ts new file mode 100644 index 0000000..bc1cc19 --- /dev/null +++ b/hono/src/index.ts @@ -0,0 +1,15 @@ +import { serve } from '@hono/node-server' +import { Hono } from 'hono' + +const app = new Hono() + +app.get('/', (c) => { + return c.text('Hello Hono!') +}) + +serve({ + fetch: app.fetch, + port: 3000 +}, (info) => { + console.log(`Server is running on http://localhost:${info.port}`) +}) diff --git a/hono/tsconfig.json b/hono/tsconfig.json new file mode 100644 index 0000000..b55223e --- /dev/null +++ b/hono/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "target": "ESNext", + "module": "NodeNext", + "strict": true, + "verbatimModuleSyntax": true, + "skipLibCheck": true, + "types": [ + "node" + ], + "jsx": "react-jsx", + "jsxImportSource": "hono/jsx", + "outDir": "./dist" + }, + "exclude": ["node_modules"] +}