Category: typescript
-
Bingo for meetings–intermezzo – improving application–part 13
After done with CLI,now it is time to improve a little bit the application. 1. should be more cards For this I have replaced with a local function As a consequence,the pageSize for displayin via Inquirer.js should be make larger to display all items 2 . The cards should be sorted alphabetically ( easy: apply…
-
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 (…
-
Bingo for meetings- yarn workspaces–part 11
The problem that we see is how to have the same objects configured for backend and for frontend( e.g. a Meeting is used on the backend on the WebAPI to read from database and in the frontend to display) In C#,there is the concept of dll / assembly that is common. In here we have…
-
Bingo for meetings- azure integrations–part 10
Now it is about Continuous Integrations. We want tests to be run each time we push something to GitHub. For this we could use Azure DevOps. It is free for GitHub public repositories . We want to configure an azure pipeline to automatically run tests that we have in Docker. So the pipeline will just…
-
Bingo for meetings- dockerize tests–part 9
We have now full DDD and tests that should be run for the objects. However,we need a way to automatically have the tests run . The easy way is to dockerize the tests – run in a container,grab the results,display somewhere. First we should have the tests display in a nice form some data. For…
-
Bingo for meetings–hide results–part 8
The last requirement says EndMeeting: The score of how many cards/ what cards were checked will be available 1 hour and 5 minutes We have already done something similar when the meeting was considered obsolete – we decided to not throw error,but use Result< T,Error> . So I supposed to be easy …. However,it…
-
Bingo for meetings–obsolete–re-reading requirements- part 7
Last time we have to implement the requirement: Meeting Obsolete: The meeting is available for 35 minutes. After that,meeting is not available anymore. We did so for the 35 minutes. But we did not for the last sentence – meeting is not available anymore. There are 2 points here: of design ( do not retrieve…
-
Bingo for meetings–obsolete–part 6
The requirement says: Meeting Obsolete: The meeting is available for 35 minutes. After that,meeting is not available anymore. How we can implement this ? Several solutions: Make the meeting know about this ( and avoiding https://martinfowler.com/bliki/AnemicDomainModel.html ) Make a decorator class for this https://en.wikipedia.org/wiki/Decorator_pattern Make a mixin in TypeScript https://www.typescriptlang.org/docs/handbook/mixins.html I decide to KISS…
-
Bingo for meetings–working at score-part 5
The next requirement is saying ( https://github.com/alexandru360/PresentationBingoCards/projects/1#card-24165817 ) Checking cards: A total score will be displayed when checking / unchecking There are 2 things very clear: The name of the user story is not reflecting the content It should not be just the total score,but also should be the percentage of the bingo cards checked…
-
Bingo for meetings– working at sharing meeting with others–part 4
Other use case for Bingo Meetings was Share meeting bingo(https://github.com/alexandru360/PresentationBingoCards/projects/1#card-24165765) Share Meeting Bingo: As a User,I can receive the meeting Id( url) . When going to this url,I can ( optionally) enter my name and check cards. So how to implement this ? A Meeting contains an array of Cards and a array of Participants.…