Category: TILT
-
TILT- TimeZone -part 22
To see if two TILTS are in the same day,it is not enough to see if the difference is less than one day. Could be less than 1 day in UTC – but in Europe/Bucharest can be the next day ( suppose that I put one TILT at 23:59:59 local time – the next TILT…
-
TILT-calendar- part 18
To see the progress,it is good to have a calendar.Discovered angular-calendar – to show events. The exemaple at https://mattlewis92.github.io/angular-calendar/#/kitchen-sink is pretty self explanatory. However,another 3 hours passed to have the display. The ( quasy – final ) result can be seen below ( taken from http://tiltwebapp.azurewebsites.net/AngTilt/tilt/public/ignatandrei ) Tools VSCode angular-calendar
-
TILT-caching- part 17
If you want to read about,see https://docs.microsoft.com/en-us/azure/architecture/patterns/cache-aside So,the public TILTS must be cached. Also,when a user makes a new TILT,the cache should be destroyed The code for Memory Cache is very simple: Add to services builder.Services.AddMemoryCache(); Add an MemoryCache cache to the constructor public MyTilts(IMemoryCache cache, add caching to the function if (cache.TryGetValue<TILT_Note_Table[]>(urlPart,out var result))…
-
TILT- cosmetic–part 16
The user must know something about the site. One of easy way is to display an intro – and I have choosed https://github.com/shipshapecode/shepherd Also display number of chars when putting a TILT display a text area instead of an input display links to my TILTS Added also https://codescene.io/ . Can be valuable – but I…
-
TILT- GUI–part 15
Now the easy way for me is to create a web interface with Angular. Nothing too complicated. This is how it looks for the TILTS at https://tiltwebapp.azurewebsites.net/AngTilt/tilt/public Now,if I am going to a TILT Url,I can see the TILTs in the browser: https://tiltwebapp.azurewebsites.net/AngTilt/tilt/public/ignatandrei For creating new TILTS,I can use the web interface https://tiltwebapp.azurewebsites.net/AngTilt/tilt/my I enter…
-
TILT–CodeCoverage–part 14
The code coverage should be simple – just run tests and that’s all,right ? For a reason,the coverlet console,dotnet-coverage,dotnet test do not work – means that code coverage generated was 0% ( I have verified with dotnet-reportgenerator-globaltool ) The only that worked was altCover and this is the code into the yml: dotnet test –no-build…
-
TILT–Analyzing code–part 13
I want a static analysis tool that can be used to check the quality of the code. SonarCloud.io is a great tool for this. You can find the instructions for the tool here: https://sonarcloud.io/dashboard/index/organization/sonarcloud/project/sonarcloud-project-id It was easy to set up – and it is free. You can see the results here: https://sonarcloud.io/summary/overall?id=ignatandrei_TILT This is the…
-
TILT- Tests- part 12
First,it is a decision between NUnit and XUnit. I took this time NUnit. Also,I take LightBDD to show data. Let’s say I want to verify the rule that the user cannot make more than 1 TILT per day. In order to do 1 TILT per day User must be authenticated and have have an URL…
-
TILT- BlocklyScenario–part 10
Scenario for adding and retrieving the own TILTs I needed a way to show to the front-end programmer how he should call the API. One is to retrieve all the TILTS urls and the other is to add a new TILT,once authenticated I have used NetCore2Blockly nuget package and configured with demoBlocks ( wwwroot\BlocklyAutomation\assets\showUsage\demoBlocks )…
-
TILT–Authentication and Authorization–part 9
This is the difficult part. I decide that,for the moment,I do not need in the application any fancy authorization – just a simple url + secret ( a.k.a password). I decided also to use JWT – it is a simple way to add authentication + authorization to the application. Let’s see the login code var…