Category: node

  • Intermezzo – NestJS + Jest vs Angular + Jasmine

    We decided to add an Angular project.  As a immediate consequence,the compile ( tsc ) of the API ( bingo-cards-api) it failes with the first error being: ../node_modules/@types/jasmine/ts3.1/index.d.ts:16:1 – error TS6200: Definitions of the following identifiers conflict with those in another file: beforeAll,beforeEach,afterAll,afterEach,describe,fdescribe,xdescribe,it,fit,xit,expect,DEFAULT_TIMEOUT_INTERVAL,CustomMatcherFactory,CustomEqualityTester   Obviously,we have a conflict… And the conflict is done by Angular(…

  • Bingo for meetings- Adding a CLI application–part 12

    The easy way to test an application is to make a simple command line version . You can find the code at https://github.com/alexandru360/PresentationBingoCards/blob/master/bingo-meeting-console/index.ts You can run also with Docker by running https://github.com/alexandru360/PresentationBingoCards/blob/master/dockerize/bingo_cli.bat What were the steps ? 1. Install the @types/node,ts-node,typescript and others – see https://github.com/alexandru360/PresentationBingoCards/blob/master/bingo-meeting-console/package.json 2. Create an index.ts with the required CLI (…

  • Obtain data from ANAF(local IRS)

    In ROmania ANAF is providing a WebAPI that allows access to some of the information that any enterprise should provide. The API is described at https://webservicesp.anaf.ro/PlatitorTvaRest/api/v3/, I have made a C# console and a node,js script. The differences: 1.it is easiear in node to make an http request. 2. For C# – I think in…